Jie Hu
commited on
Commit
·
8e3fa18
1
Parent(s):
5412668
init project
Browse files- .DS_Store +0 -0
- modules/dust3r/model.py +3 -3
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
modules/dust3r/model.py
CHANGED
@@ -202,9 +202,9 @@ class AsymmetricCroCo3DStereo (
|
|
202 |
# combine all ref images into object-centric representation
|
203 |
dec1, dec2 = self._decoder(feat1, pos1, feat2, pos2)
|
204 |
|
205 |
-
with torch.cuda.amp.autocast(enabled=False):
|
206 |
-
|
207 |
-
|
208 |
|
209 |
res2['pts3d_in_other_view'] = res2.pop('pts3d') # predict view2's pts3d in view1's frame
|
210 |
return res1, res2
|
|
|
202 |
# combine all ref images into object-centric representation
|
203 |
dec1, dec2 = self._decoder(feat1, pos1, feat2, pos2)
|
204 |
|
205 |
+
# with torch.cuda.amp.autocast(enabled=False):
|
206 |
+
res1 = self._downstream_head(1, [tok.float() for tok in dec1], shape1)
|
207 |
+
res2 = self._downstream_head(2, [tok.float() for tok in dec2], shape2)
|
208 |
|
209 |
res2['pts3d_in_other_view'] = res2.pop('pts3d') # predict view2's pts3d in view1's frame
|
210 |
return res1, res2
|