ssd.pytorch
ssd.pytorch copied to clipboard
KeyError: Caught KeyError in DataLoader worker process 0.
/content/drive/My Drive/ssd/ssd.pytorch/ssd.py:34: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad():
instead.
self.priors = Variable(self.priorbox.forward(), volatile=True)
Loading base network...
Initializing weights...
train.py:214: UserWarning: nn.init.xavier_uniform is now deprecated in favor of nn.init.xavier_uniform_.
init.xavier_uniform(param)
Loading the dataset...
Training SSD on: VOC0712
Using the specified args:
Namespace(basenet='vgg16_reducedfc.pth', batch_size=16, cuda=True, dataset='VOC', dataset_root='/content/drive/My Drive/ssd/ssd.pytorch/data/VOCdevkit/', gamma=0.1, lr=0.0001, momentum=0.9, num_workers=4, resume=None, save_folder='weights/', start_iter=0, visdom=False, weight_decay=0.0005)
Traceback (most recent call last):
File "train.py", line 255, in
I just want to detect one traffic sign. but it doesn't work and it report the error. I can't find error and it's solutions looks like it.
I just want to detect one traffic sign. but it doesn't work and it report the error. I can't find error and it's solutions looks like it.
@GeLee-Q You must adjust something:
- in data/voc0712.py, change VOC_CLASSES to VOC_CLASSES = [('traffic sign')]
- change num_classes in VOC in data/config.py to 2 (included background class)
- Try to change and if have any problem, comment here
I just want to detect one traffic sign. but it doesn't work and it report the error. I can't find error and it's solutions looks like it.
@GeLee-Q You must adjust something:
- in data/voc0712.py, change VOC_CLASSES to VOC_CLASSES = [('traffic sign')]
- change num_classes in VOC in data/config.py to 2 (included background class)
- Try to change and if have any problem, comment here
Same like above, I just wanna detect one class 'smoke', and I did what you said similarly, I rewrite a file similar to voc0712.py name smoke.py the structure is alike and other alternations, changed num_classes in VOC in data/config.py to 2,
but it still didn't work
same errors:
Loading base network...
Initializing weights...
Loading the dataset...
Training SSD on: SMOKE
Using the specified args:
Namespace(basenet='vgg16_reducedfc.pth', batch_size=8, cuda=True, dataset='VOC', dataset_root='E:/ssd.pytorch/data/VOCdevkit/VOCsmoke/', gamma=0.1, lr=1e-05, momentum=0.9, num_workers=4, resume=None, save_folder='E:/ssd.pytorch/weights/', start_iter=0, visdom=False, weight_decay=0.0005)
Traceback (most recent call last):
File "train.py", line 254, in
@jayphone17 Check your VOC classes name again. As I saw, you defined 'smoke class name but it has to be smoke (notice the apostrophe precede of smoke word)
@jayphone17 Check your VOC classes name again. As I saw, you defined 'smoke class name but it has to be smoke (notice the apostrophe precede of smoke word)
THX A LOT ! After I checked my dataset, there is a damaged label. Relabel and it worked !