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

Pretrained _conv_stem.weight different each run when in_channels=1 #330

Open
daniel-a-diaz opened this issue Jun 22, 2022 · 0 comments
Open

Comments

@daniel-a-diaz
Copy link

Just trying to understand what happens when in_channels=1. Every time I rerun the script the _conv_stem.weight is different each time. When in_channels=3 it is the same each time. It seems like something to do with padding. I am working on converting the 2D EfficientNet pretrained weights to 3D weights for use in https://github.com/shijianjian/EfficientNet-PyTorch-3D and this is hanging me up a bit. Thanks. I am using the below code to instantiate the model.

model = EfficientNet.from_pretrained("efficientnet-b0", in_channels=1)

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

1 participant