Skip to content

Commit a1da5e2

Browse files
committed
stash
Signed-off-by: Boris Fomitchev <bfomitchev@nvidia.com>
1 parent 6e3201f commit a1da5e2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

vista3d/modeling/vista3d.py

100644100755
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,15 +310,14 @@ def forward(
310310
)
311311
torch.cuda.synchronize()
312312
print(f"Encoder Time: {time.time() - time0}, shape : {input_images.shape}, point: {point_coords is not None}")
313-
if False:
313+
if self.engine is None:
314314
# breakpoint()
315315
torch.onnx.export(self.image_encoder,
316316
(input_images,),
317317
"Encoder.onnx",
318318
verbose=False,
319319
opset_version=18
320320
)
321-
self.engine = True
322321

323322
input_images = None
324323
time1 = time.time()

0 commit comments

Comments
 (0)