Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +: 'Tensor' and 'tuple' #5

Closed
qianqianderizi opened this issue Feb 19, 2022 · 0 comments
Closed

Comments

@qianqianderizi
Copy link

When I run "python tools/train.py configs/scene_graph/VG_SgDet_heth_area_mask_X_rcnn_x101_64x4d_fpn_1x.py",

There was an error:
File "/home/XXX/MMSceneGraph/mmdet/models/relation_heads/het_head.py", line 117, in forward
roi_feats, union_feats, det_result = self.frontend_features(img, img_meta, det_result, gt_result)
File "/home/XXX/MMSceneGraph/mmdet/models/relation_heads/relation_head.py", line 229, in frontend_features
return roi_feats + union_feats + (det_result,)
TypeError: unsupported operand type(s) for +: 'Tensor' and 'tuple'

but run "python tools/train.py configs/scene_graph/VG_SgCls_heth_area_mask_X_rcnn_x101_64x4d_fpn_1x.py" is no problem.
How can I solve the problem? thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant