-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error in train_[birds/flowers].sh #3
Comments
Hi! Wrapping sorted_indices with LongTensors might solve the problem as the error message suggested. Maybe you are using a different version of pytorch. |
@woozzu Could you please tell me what's the version you used ? I'm using 0.3.0. |
0.2 as described in README. |
@woozzu I'm soooo soooorry that I missed it... |
@woozzu I'm sorry to interrupt you again. Traceback (most recent call last): I'm not sure why this happened... |
I'm sorry that I do not know the reason.. But, at least it worked at that time. |
@woozzu Thank you ! It really works ! Anyway, thanks again for your kind help !!! |
Yes, I just used the annotated dataset and I didn't modify it except visual-semantic embedding... |
Hello!I have encounter a problem when I download the word vec ,the website was enable,could you please offer a new website?I will thank you so much because you help. |
@tangjialiang-jj Please visit this website. |
@woozzu First,I am very thanks for your help,but I had encounter a problem when I run the code.When I load dataset,A problem has arisen,prompt process killed,I had install the environment by the readme.Could you please help me again? |
Hello! I've done the first step: train_text_embedding_birds.sh
When I run train_birds.sh, error like below occurs:
Traceback (most recent call last):
File "train.py", line 150, in
preprocess(img, desc, len_desc, txt_encoder)
File "train.py", line 67, in preprocess
desc[sorted_indices, ...].transpose(0, 1),
File "/media/server009/seagate/liuhan/anaconda2/envs/dongiccv/lib/python2.7/site-packages/torch/autograd/variable.py", line 78, in getitem
return Index.apply(self, key)
File "/media/server009/seagate/liuhan/anaconda2/envs/dongiccv/lib/python2.7/site-packages/torch/autograd/_functions/tensor.py", line 87, in forward
result = i.index(ctx.index)
IndexError: When performing advanced indexing the indexing objects must be LongTensors or convertible to LongTensors. The indexing object at position 0 is of type numpy.ndarray and cannot be converted
Could you please help me solve this problem? @woozzu
Thank you very much !
I'm looking forward to your reply.
The text was updated successfully, but these errors were encountered: