Closed DexterZeng closed 6 years ago
Can you offer your pytorch version? It seems that the error here looks similar to https://discuss.pytorch.org/t/why-i-cant-use-torch-index-select-in-forward-function/8010
Hi, thanks for the reply. The pytorch version is 0.3.0.post4. The error does look similar to the post. Should I wrap the Tensors in the Variables? Many thanks.
Yes, you should wrap tensors with Variable
properly. I removed all Variable
because it was removed in 0.4.0 (see https://pytorch.org/2018/04/22/0_4_0-migration-guide.html).
Many thanks for your feedback. I will try it later.
Hi Thank you for sharing the code. However, when I tried to test the repo with "python preprocess.py" and " python train.py --weights --cuda", the first one worked well and generated processed data, whereas the second reported the error as follows:
I am quite new to Pytorch so any idea what might go wrong? Many thanks.