Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions demo_viser.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,13 @@ def main():
if isinstance(predictions[key], torch.Tensor):
predictions[key] = predictions[key].cpu().numpy().squeeze(0) # remove batch dimension and convert to numpy

# Free GPU memory after moving tensors to CPU
try:
del model, images
torch.cuda.empty_cache()
except NameError:
pass

if args.use_point_map:
print("Visualizing 3D points from point map")
else:
Expand Down