qiaoguan / Person-reid-GAN-pytorch

A Pytorch Implementation of "Unlabeled Samples Generated by GAN Improve the Person Re-identification Baseline in vitro"(ICCV17)
158 stars 49 forks source link

when I change the numworks to 0,I meet the new problem #12

Open XXXxiaoxiaoxia opened 6 years ago

XXXxiaoxiaoxia commented 6 years ago

logpt=torch.gather(logpt,1,torch.LongTensor(target)) RuntimeError: Invalid index in gather at c:\users\administrator\downloads\new-builder\win-wheel\pytorch\aten\src\th\generic/THTensorMath.c:600

Process finished with exit code 1

qiaoguan commented 6 years ago

check the training data to see the label of the data, do you run changeindex.py?

XXXxiaoxiaoxia commented 6 years ago

thank you,I have solved it.

I have another question, how to get train_new? run changeindex.py just can get val_new