-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depreciation warning when running inference w/Pytorch 1.10.1 #3983
Comments
Should be gone after bb52414 – which is not in latest release (v0.6) yet. |
There seem to be a number of other floordiv usages in the code, e.g. at structures/keypoints.py, line 224 (this is the one that keeps coming up for me currently when using Detectron2 as dependency of VideoPose3D). EDIT: I tried calculating a *.npz both ways (utilizing VideoPose3D's infer_video_d2.py) and ended up with different files according to diff and Meld. Didn't take a closer look into the data though. |
Depreciation warning when running inference with Detectron2 v0.6 + pytorch 1.10.1, cuda 10.2
Details
detectron2/detectron2/structures/image_list.py:88: UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor').
max_size = (max_size + (stride - 1)) // stride * stride
Environment:
sys.platform linux
Python 3.9.6 (default, Feb 18 2022, 13:15:09) [GCC 7.5.0]
numpy 1.22.1
detectron2 0.6 @/opt/thirdparty/detectron2/detectron2
Compiler GCC 7.5
CUDA compiler CUDA 10.2
detectron2 arch flags 5.0, 6.0, 6.1, 7.0, 7.5
DETECTRON2_ENV_MODULE
PyTorch 1.10.1+cu102 @/usr/local/lib/python3.9/site-packages/torch
PyTorch debug build False
GPU available Yes
GPU 0,1,2,3 NVIDIA GeForce GTX 1080 (arch=6.1)
Driver version 470.103.01
CUDA_HOME /usr/local/cuda
TORCH_CUDA_ARCH_LIST 5.0;6.0;6.1;7.0;7.5
Pillow 9.0.1
torchvision 0.11.2+cu102 @/usr/local/lib/python3.9/site-packages/torchvision
torchvision arch flags 3.5, 5.0, 6.0, 7.0, 7.5
fvcore 0.1.5.post20220212
iopath 0.1.9
cv2 4.4.0
PyTorch built with:
Testing NCCL connectivity ... this should not hang.
NCCL succeeded.
The text was updated successfully, but these errors were encountered: