microsoft / SoftTeacher

Semi-Supervised Learning, Object Detection, ICCV2021
MIT License
904 stars 123 forks source link

Mask predictions #154

Closed Abdullah955 closed 2 years ago

Abdullah955 commented 2 years ago

I've installed and tested the model on Box prediction and it works fine, when i tried to switch to masks referring to this page https://github.com/MendelXu/SoftTeacher/blob/main/ssod/models/mask_soft_teacher.py

where can i switch from the soft_teacher.py to mask_soft_teacher.py ?

MendelXu commented 2 years ago

You can refer to https://github.com/microsoft/SoftTeacher/issues/146 to modify your config (change semi_wrapper.type to MaskSoftTeacher)and add from .mask_soft_teacher import MaskSoftTeacher in ssod/models/__init__.py

Abdullah955 commented 2 years ago

I'm facing ArrtibuteError: 'StandardRoIHead' object has no attribute 'mask_head' do you think it's a version problem ?

MendelXu commented 2 years ago

No. Please refer to #146. image

Abdullah955 commented 2 years ago

I've already edited the base file still have same problems as this issue

https://github.com/microsoft/SoftTeacher/issues/146 TypeError: 'NoneType' object is not iterable

and i've added the same roi_head configurations you mentioned.

MendelXu commented 2 years ago

OK. Thanks for your reply. I will post a correct config file here tonight.

MendelXu commented 2 years ago

Putting this file(https://gist.github.com/MendelXu/143b6b46ac35796785aae9d4087393de) in configs/soft_teacher/ should work.

Abdullah955 commented 2 years ago

it worked! Thank you for great support

alaa-shubbak commented 2 years ago

Hello , I did the same things . and change the config as well as the following command

You can refer to #146 to modify your config (change semi_wrapper.type to MaskSoftTeacher)and add from .mask_soft_teacher import MaskSoftTeacher in ssod/models/__init__.py

but unfortunatily , I still get an error , I have this error : KeyError: 'MaskSoftTeacher is not in the models registry'

it is an error about register stuff , how can i solve it?