Closed alicanb closed 2 years ago
@alicanb that one is not so easy to support, https://github.com/rwightman/pytorch-image-models/blob/main/timm/models/mobilenetv3.py#L187
For mobilenetv3, there is an extra layer after the pooling that doesn't exist for most other nets. Using catavgmax doubles with # features so requires reseting and reconfiguring that instead of just the final classifier layer. I do not currently have a clean mechanism to support this generically (to avoid per model customization) although had some designs re more flexible head adaptation that might cover this (but not going to happen right away).
For now, two alternatives that can work (but not ideal)
sounds reasonable 👍
Describe the bug Trying to load mobilenetv3_small with catavgmax pooling on timm 0.6.11 gives following error:
To Reproduce
Expected behavior model should load
Desktop (please complete the following information):