Spaces:
Running
on
Zero
Running
on
Zero
Add cache cleaning
Browse files- demo/gs_train.py +1 -1
- demo/mast3r_demo.py +1 -0
demo/gs_train.py
CHANGED
@@ -290,5 +290,5 @@ def train(
|
|
290 |
return renders_path
|
291 |
|
292 |
renders_path = render_path(dataset, opt.iterations, pipe, render_resize_method='crop')
|
293 |
-
|
294 |
return renders_path, point_cloud_path
|
|
|
290 |
return renders_path
|
291 |
|
292 |
renders_path = render_path(dataset, opt.iterations, pipe, render_resize_method='crop')
|
293 |
+
torch.cuda.empty_cache()
|
294 |
return renders_path, point_cloud_path
|
demo/mast3r_demo.py
CHANGED
@@ -239,6 +239,7 @@ def get_reconstructed_scene(image_size, current_scene_state,
|
|
239 |
print(f"colmap_data_dir: {colmap_data_dir}")
|
240 |
print(f"outfile_name: {outfile_name}")
|
241 |
print(f"cache_dir: {cache_dir}")
|
|
|
242 |
return scene_state, outfile
|
243 |
|
244 |
|
|
|
239 |
print(f"colmap_data_dir: {colmap_data_dir}")
|
240 |
print(f"outfile_name: {outfile_name}")
|
241 |
print(f"cache_dir: {cache_dir}")
|
242 |
+
torch.cuda.empty_cache()
|
243 |
return scene_state, outfile
|
244 |
|
245 |
|