CloserLookFewShot
CloserLookFewShot copied to clipboard
pytorch version
Hi, It is a nice work. Now I am facing some problems when running your code. So I want to make sure that I use the same pytorch as you. Which pytorch version did you use when you implement this project?
Hello, My Pytorch version is 0.3.1, but I have also tested on 1.0 and it works. What does your error message say?
It's a nice work+1 Just changed "loss.data[0]" to "loss.item()" in baselinetrain.py and it seems to work fine. I am using 1.0.1.post2 (pytorch version).
I'm got the following error with 1.0.1.post2.
Traceback (most recent call last):
File "./train.py", line 177, in
Well, I was so lazy to fix "loss.dada[0]" to "loss.item()" by myself, and didn't want to change the code without the author's confirmation so I installed 0.3.1 using the following command, then it worked.
conda install pytorch==0.3.1 torchvision -c pytorch
It's a nice work+1 Just changed "loss.dada[0]" to "loss.item()" in baselinetrain.py and it seems to work fine. I am using 1.0.1.post2 (pytorch version).
well... at least dada -> data.