Update demo_utils.py
Browse files- demo_utils.py +2 -2
demo_utils.py
CHANGED
|
@@ -62,8 +62,8 @@ def run_demo(dataset_name, prompt_type, sample_idx, prompt_idx, voxel_size, thet
|
|
| 62 |
if os.path.exists("./cache_results/" + name + '.npy') and os.path.exists("./cache_prompt/" + name + '.npy'):
|
| 63 |
new_color = np.load("./cache_results/" + name + '.npy')
|
| 64 |
PROMPT = np.load("./cache_prompt/" + name + '.npy')
|
| 65 |
-
|
| 66 |
-
|
| 67 |
#########
|
| 68 |
if args.dataset == 'S3DIS':
|
| 69 |
info = configs.S3DIS_samples[args.sample_idx]
|
|
|
|
| 62 |
if os.path.exists("./cache_results/" + name + '.npy') and os.path.exists("./cache_prompt/" + name + '.npy'):
|
| 63 |
new_color = np.load("./cache_results/" + name + '.npy')
|
| 64 |
PROMPT = np.load("./cache_prompt/" + name + '.npy')
|
| 65 |
+
if not args.ret_prompt: return new_color, PROMPT
|
| 66 |
+
else: return PROMPT
|
| 67 |
#########
|
| 68 |
if args.dataset == 'S3DIS':
|
| 69 |
info = configs.S3DIS_samples[args.sample_idx]
|