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

ResNet-18 Initialization #4388

Open
ZedongPeng opened this issue Nov 19, 2024 · 0 comments
Open

ResNet-18 Initialization #4388

ZedongPeng opened this issue Nov 19, 2024 · 0 comments

Comments

@ZedongPeng
Copy link

Hi,

I am new to Flax and am trying to learn it. Regarding the ResNet example, it seems that the initial parameters, when not using pretraining, do not match those provided in torchvision.models.

from torchvision.models import resnet18
nnet = resnet18(pretrained=False)

I was wondering if using flax.linen.initializers.he_normal could help address this.

Since there are no official ResNet models in Flax, do you have any suggestions on how to replicate the ResNet-18 model from torchvision.models in JAX?

Thank you!

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