Hi, I am using the model-htc_hrnetv2p_w40_20e_coco.py.But actually I run the other model before,like yolo and my dataset's type is VOC which only has the boxes and donex't have the mask.And the coco needs the 'segmentation'
the format :
File "tools/train.py", line 185, in <module>
main()
File "tools/train.py", line 181, in main
meta=meta)
File "/mmdetection/mmdet/apis/train.py", line 150, in train_detector
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 125, in run
epoch_runner(data_loaders[i], **kwargs)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 50, in train
self.run_iter(data_batch, train_mode=True)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 30, in run_iter
**kwargs)
File "/opt/conda/lib/python3.7/site-packages/mmcv/parallel/data_parallel.py", line 67, in train_step
return self.module.train_step(*inputs[0], **kwargs[0])
File "/mmdetection/mmdet/models/detectors/base.py", line 246, in train_step
losses = self(**data)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 84, in new_func
return old_func(*args, **kwargs)
File "/mmdetection/mmdet/models/detectors/base.py", line 180, in forward
return self.forward_train(img, img_metas, **kwargs)
File "/mmdetection/mmdet/models/detectors/two_stage.py", line 164, in forward_train
**kwargs)
File "/mmdetection/mmdet/models/roi_heads/htc_roi_head.py", line 256, in forward_train
loss_seg = self.semantic_head.loss(semantic_pred, gt_semantic_seg)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 164, in new_func
return old_func(*args, **kwargs)
File "/mmdetection/mmdet/models/roi_heads/mask_heads/fused_semantic_head.py", line 104, in loss
labels = labels.squeeze(1).long()
AttributeError: 'NoneType' object has no attribute 'squeeze'
Hi, I am using the model-htc_hrnetv2p_w40_20e_coco.py.But actually I run the other model before,like yolo and my dataset's type is VOC which only has the boxes and donex't have the mask.And the coco needs the 'segmentation' the format :
btw, I try to use VOC format to run the model and make a new config
and run it,make some error.
hope your answer.Thanks a lot