open-mmlab / mmfewshot

OpenMMLab FewShot Learning Toolbox and Benchmark
https://mmfewshot.readthedocs.io/en/latest/
Apache License 2.0
695 stars 117 forks source link

Add mobilenetv2 as backbone model. #129

Open zeynepozdemir opened 1 year ago

zeynepozdemir commented 1 year ago

I added the mobilenetv2 model defined in mmclassification as a backboned model. The forward function of the model here returns a tuple value as you can see in the attachment. When I run it with Prototypical Networks, I get the attached error on line 46.

image

Eror:

image

When I use the Resnet12 model defined in mmfewshot, support_feads and query_feads appear as attached. How can I make MobileNetV2 compatible?

image