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

adapt pre-trained models to a Self-ONN converted network #12

Open
SarinaAhmadi opened this issue Apr 6, 2023 · 1 comment
Open

adapt pre-trained models to a Self-ONN converted network #12

SarinaAhmadi opened this issue Apr 6, 2023 · 1 comment

Comments

@SarinaAhmadi
Copy link

When I use Self-ONN(q>1) instead of Conv in the Alexnet network, I get this error:
SelfonnError

How I should load and adapt pre-trained models to a Self-ONN converted network?

@junaidmalik09
Copy link
Owner

It is not currently possible to transfer convolutional weights to a Self-ONN network. When adapting pre-trained models, one strategy could be to keep the earlier convolutional layers while replacing the layers towards the end of the network with Self-ONNs. The Self-ONN layers can then be trained from scratch while the convolutional layers can be frozen or fine-tuned, depending on the need. Please note that this is still an open topic and requires further study.

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