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