Skip to content

TypeError: SOLOv2: __init__() got an unexpected keyword argument 'roi_head' #9720

Answered by ZwwWayne
yasarniyazoglu asked this question in Q&A
Discussion options

You must be logged in to vote

SOLOv2 does not have RoIHead, therefore, you do not need to set

cfg.model.roi_head.bbox_head.num_classes = 3
cfg.model.roi_head.mask_head.num_classes = 3

Instead, you should set

cfg.model.mask_head.num_classes = 3

You should modify the keys existing in the config of solov2

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZwwWayne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants