Closed shine-lcy closed 4 years ago
好像解决了,可能是我coco版本有问题还是怎么着,在跑到word_dataset.py line 64
img, anno = super(WordDataset, self).__getitem__(idx)
时,进入coco.py line 118-119
if self.transforms is not None:
img, target = self.transforms(img, target)
即在target还不是BoxList格式时已经在过tranforms,把这两句注释掉就好了。 因为在word_dataset.py里,target转化为BoxList格式后还要过transforms
按您说的方法没有解决 我也出现了 这个错误
Use torchvision==0.2.1 This solved my problem
非常感谢您开源代码,由于是国人我就用中文写issue了。 环境配置好后,跑test_contour.sh时报错:
此时target输出来如下这么一个list
每一个元素t格式为
是一个包含很多信息的dict, 在resize时会报错。
数据集是下载的您提供的coco format ic15。