Closed zjxi closed 5 years ago
Thanks a lot! Maybe we can work on it together.
However, when using the ‘bytes’ encoding rule, I met another problem below:
Traceback (most recent call last):
File "train.py", line 72, in <module>
dataset_train = MiniImageNet(phase=train_split)
File "/media/eternal-wang/D/Research/FSL/FewShotWithoutForgetting-master/dataloader.py", line 124, in __init__
self.data = data_train['data']
KeyError: 'data'
But after changed into ‘iso-8859-1’,the problem disappeared.
Yes. By the way, I finally make the code running after fixed several bugs.
I haven't met this error. Maybe you should check the path of ./architectures/ConvNet.py ?
change
self.global_iter = self.curr_epoch * len(data_loader) + self.biter
to
self.global_iter = self.curr_epoch * len(data_loader()) + self.biter
change
nEvalExamplesPerClass = nTestNovel / nKnovel
to
nEvalExamplesPerClass = int(nTestNovel / nKnovel)
in dataloader.py at line 380
你已经是个成熟的程序员了,应该学会开动小脑瓜自己debug了。
Hello, have you fixed this problem?