zju3dv / NeuralRecon

Code for "NeuralRecon: Real-Time Coherent 3D Reconstruction from Monocular Video", CVPR 2021 oral
https://zju3dv.github.io/neuralrecon/
Apache License 2.0
2.03k stars 294 forks source link

torchsparse: RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead. #113

Closed panfeng-hover closed 1 year ago

panfeng-hover commented 1 year ago

The error comes from:

File "/home/panfengli/libraries/miniconda3/envs/neucon/lib/python3.7/site-packages/torchsparse/nn/functional/downsample.py", line 28, in spdownsample
    sample_stride).trunc() * sample_stride
RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.

Happed during: python demo.py --cfg ./config/demo.yaml