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
UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead #2017
Comments
A first guess is here, for now, you can try to remove the |
I can confirm this issue. I've tried PyTorch versions from 1.4 to 1.2 and still receive the error. However, with PyTorch 1.1 this warning doesn't occur. |
When this change is implemented, can it be back-ported into 1.0? |
This change should be independent, so you can fix it in your environment. |
You can add this in train.py while training (to ignore the warning):
|
The below task also produces this error.
|
I have also met the same problem, and I can't solve by using the online solutions. If are there anything new methods to solve this problem, please tell me! |
Change torch.ByteTensor->torch.BoolTensor |
Thank you! |
could tell me more clearly?change torch.ByteTensor->torch.BoolTensor is done in which file? |
thanks! |
could you tell me more clearly? make this change in which file?thank you! |
please help me,when I train,I encounter pdb and stop,erro information is below.How can I continue? 2022-04-01 22:13:34,296 - INFO - workflow: [('train', 1)], max: 12 epochs
|
`maybe u could convert tensor type like : xx.bool() at the location of the error(warning)。 |
Hello,
I have installed:
Pytorch 1.4.0
cuda: 10.1
after running:
python3 tools/train.py ./configs/ssd300_coco.py
Training will be started but with this warning, Is there any Idea to remove it?
2020-01-24 18:31:56,041 - INFO - Start running, host: ali@ali-ubt, work_dir: /home/ali/00_2020/mmdetection/work_dirs/ssd300_coco
2020-01-24 18:31:56,041 - INFO - workflow: [('train', 1)], max: 24 epochs
/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
The text was updated successfully, but these errors were encountered: