Commit
·
7998a5d
1
Parent(s):
e332171
update
Browse files- demo_hf.py +1 -0
- vggt/models/vggt.py +1 -0
demo_hf.py
CHANGED
@@ -65,6 +65,7 @@ def demo_fn(cfg: DictConfig, model) -> None:
|
|
65 |
if isinstance(y_hat[key], torch.Tensor):
|
66 |
y_hat[key] = y_hat[key].cpu().numpy()
|
67 |
|
|
|
68 |
return y_hat
|
69 |
|
70 |
|
|
|
65 |
if isinstance(y_hat[key], torch.Tensor):
|
66 |
y_hat[key] = y_hat[key].cpu().numpy()
|
67 |
|
68 |
+
torch.cuda.empty_cache()
|
69 |
return y_hat
|
70 |
|
71 |
|
vggt/models/vggt.py
CHANGED
@@ -103,6 +103,7 @@ class VGGT(nn.Module):
|
|
103 |
aggregated_tokens_list, _, patch_start_idx = self.aggregator(images, batch=batch)
|
104 |
|
105 |
|
|
|
106 |
# Pose branch
|
107 |
# TODO check pose encoding conversion # Removed TODO
|
108 |
# loss = 0
|
|
|
103 |
aggregated_tokens_list, _, patch_start_idx = self.aggregator(images, batch=batch)
|
104 |
|
105 |
|
106 |
+
torch.cuda.empty_cache()
|
107 |
# Pose branch
|
108 |
# TODO check pose encoding conversion # Removed TODO
|
109 |
# loss = 0
|