728x90
https://github.com/NVIDIA/flownet2-pytorch/issues/113#issuecomment-450802359
invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number · Issue #113 · NVIDIA/flownet2
pytorch 1.0 python3 main.py --inference --model FlowNet2 --save_flow --inference_dataset ImagesFromFolder --inference_dataset_root ~/fs24_512/ --resume mycheckpoints/FlowNet2_checkpoint.pth.tar Ini...
github.com
Pytorch > = 0.5 인 곳에서는 [0] dim tensor가 불가능하다
그래서 변수.data[0] --> 변수.data로 변경이 필요함
728x90
'Done > Trouble Shooting' 카테고리의 다른 글
[ERROR] Python, PyQt5 GUI , Conda환경에서의 segmentation error (0) | 2023.01.06 |
---|---|
[ERROR] Certificate verification failed: The certificate is NOT trusted. (APT list) (0) | 2022.10.10 |
[ERROR]Anaconda with ROS , Python (0) | 2022.05.20 |
[ERROR] ValueError: unsupported pickle protocol: 5 (0) | 2022.01.12 |
[ERROR] Ubuntu 18.04apt - key error 404 ip (0) | 2021.09.15 |