Skip to content

Change in the API ? #2226

Closed Answered by rwightman
Optimox asked this question in Q&A
Jul 9, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@Optimox the API did change a little bit, I added a 'head_hidden_size' for determining pre_logits shape for models where that's different, however it should not impact efficientnet or resnet (head_hidden_size=num_features there) and I just checked and it seems fine, model.num_features is 512 for resnet18 and 1280 for efficiientnet_b0 and it matches the output

#2224 has cut and paste code of what the latest tests are validating for the models

EDIT: also, if what your observing happens, the unit tests would fail as that's checked as per the snippests in that other discussion, no other changes are made to the lib?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Optimox
Comment options

@rwightman
Comment options

Answer selected by Optimox
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