You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
I am trying to implement DetectoRS with own custom dataset, and I am getting an error which is AttributeError: 'NoneType' object has no attribute 'squeeze'
Error traceback
If applicable, paste the error trackback here.
Traceback (most recent call last):
File "tools/train_gs.py", line 182, in <module>
main()
File "tools/train_gs.py", line 178, in main
meta=meta)
File "/shared/hsmoon/mmdetection_official/mmdet/apis/train.py", line 143, 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 122, in run
epoch_runner(data_loaders[i], **kwargs)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 32, in train
**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 "/shared/hsmoon/mmdetection_official/mmdet/models/detectors/base.py", line 234, in train_step
losses = self(**data)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
result = self.forward(*input, **kwargs)
File "/shared/hsmoon/mmdetection_official/mmdet/core/fp16/decorators.py", line 51, in new_func
return old_func(*args, **kwargs)
File "/shared/hsmoon/mmdetection_official/mmdet/models/detectors/base.py", line 168, in forward
return self.forward_train(img, img_metas, **kwargs)
File "/shared/hsmoon/mmdetection_official/mmdet/models/detectors/two_stage.py", line 164, in forward_train
**kwargs)
File "/shared/hsmoon/mmdetection_official/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 "/shared/hsmoon/mmdetection_official/mmdet/core/fp16/decorators.py", line 131, in new_func
return old_func(*args, **kwargs)
File "/shared/hsmoon/mmdetection_official/mmdet/models/roi_heads/mask_heads/fused_semantic_head.py", line 105, in loss
labels = labels.squeeze(1).long()
AttributeError: 'NoneType' object has no attribute 'squeeze'
When I debugged, I could see that pred_mask in fused_semantic_head.py has values which are not 0, but the labels was None.
Could anyone suggest me the solution that I can try with?
Thank you!
The text was updated successfully, but these errors were encountered:
I found that detectoRS with htc does not use semantic segmentation, but I still can meet the error about not existence of semantic segmentation map. Why it requires map although it is without-semantic-seg option?
Bug Description
I am trying to implement DetectoRS with own custom dataset, and I am getting an error which is
AttributeError: 'NoneType' object has no attribute 'squeeze'
Reproduction
The config I am using is below.
I am using my own dataset which has coco format
Environment
Error traceback
If applicable, paste the error trackback here.
When I debugged, I could see that pred_mask in fused_semantic_head.py has values which are not 0, but the labels was None.
Could anyone suggest me the solution that I can try with?
Thank you!
The text was updated successfully, but these errors were encountered: