We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the documentation up to date? Because i cant seem to load 'densenet121' using this code, which works for resnet50:
model = robustness.imagenet_models.resnet50(pretrained=True, num_classes=1000)
When I try to run
model = robustness.imagenet_models.densenet121(pretrained=True, num_classes=1000)
I get the following error
AttributeError: module 'robustness.imagenet_models' has no attribute 'densenet121'
The text was updated successfully, but these errors were encountered:
@carlamao That's not how you should be loading models in our library. You should instead be doing this
from robustness import model_utils, datasets ds = datasets.ImageNet(PATH) model, checkpoint = model_utils.make_and_restore_model(arch='densenet121', dataset=ds)
And this should load densenet121 fine.
densenet121
Sorry, something went wrong.
No branches or pull requests
Is the documentation up to date? Because i cant seem to load 'densenet121' using this code, which works for resnet50:
When I try to run
I get the following error
The text was updated successfully, but these errors were encountered: