Skip to content
New issue

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

anyway of removing this log/print ? #263

Closed
GabrielDornelles opened this issue Jan 10, 2021 · 1 comment
Closed

anyway of removing this log/print ? #263

GabrielDornelles opened this issue Jan 10, 2021 · 1 comment

Comments

@GabrielDornelles
Copy link

I wonder if there's a way of removing the log

Loaded pretrained weights for efficientnet-b0

when I load my transfer learning model with

 EfficientNet.from_pretrained('efficientnet-b0', num_classes=35)

I'm using efficientnet_pytorch==0.7.0

@lukemelas
Copy link
Owner

lukemelas commented Apr 15, 2021

I just added this functionality. You can now use verbose=False. For example:

model = cls.from_name(model_name, num_classes=35)
load_pretrained_weights(model, model_name, weights_path=weights_path, load_fc=(num_classes == 1000), advprop=advprop, verbose=False)
model._change_in_channels(in_channels)

Thanks for the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants