tf_efficientnet_b0_ap model was removed but is still in the doc
Describe the bug A clear and concise description of what the bug is.
tf_efficientnet_b0_ap model was removed in https://github.com/rwightman/pytorch-image-models/commit/6a01101905e78007e5396f5ffdaae0c4725ba72c#diff-27c2bbd967991cbb5264f93cb5da34895fdab02424b2cc8c63d3d0768e65d47aL1833, but is still in doc https://github.com/rwightman/pytorch-image-models/blob/6a01101905e78007e5396f5ffdaae0c4725ba72c/docs/models/advprop.md#how-do-i-use-this-model-on-an-image
To Reproduce Steps to reproduce the behavior:
$ python -c "import timm; timm.create_model('tf_efficientnet_b0_ap', pretrained=True)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/xwang/Developer/pytorch-image-models/timm/models/_factory.py", line 89, in create_model
raise RuntimeError('Unknown model (%s)' % model_name)
RuntimeError: Unknown model (tf_efficientnet_b0_ap)
@xwang233 PR welcome, there is a significant shift in both docs and models right now, 0.6.x (pypi releases or this branch https://github.com/rwightman/pytorch-image-models/tree/0.6.x should be used for stability).
On main, that model is now tf_efficientnet_b0.ap_in1k
You can see the changes to all of the tf efficientnet naming here: https://github.com/rwightman/pytorch-image-models/blob/main/timm/models/efficientnet.py#L1058-L1195
or timm.list_models('tf_efficientnet*', pretrained=True)
I'm slowly making my way through every model on main (0.8.x) and converting them to this new architecture.pretrained_tag form, I do intend to add a backwards compatible deprecation mapping, but that's not on main yet which is the main reason it's considered 'unstable' / pre-release at the moment.
@xwang233 @kaczmarj deprecation mapping feature on main branch now, will be an updated 0.8 pre-release within a day or two with that. Still have some models to add, but efficientnet mapping was added
eg:
>>> timm.create_model('tf_efficientnet_b0_ap', pretrained=True)
/home/wiggs/work/pytorch-models-release2/timm/models/_factory.py:93: UserWarning: Mapping deprecated model tf_efficientnet_b0_ap to current tf_efficientnet_b0.ap_in1k.'
model = create_fn(