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

Support h5 weight loading in PyTorch training script #596

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

MaybeRichard
Copy link

Adds the ability to load initial weights from a Keras h5 model file when the --load-model argument contains the 'h5' substring.

The main changes include:

  • Check if the --load-model argument contains 'h5'. If so, call load_tf_weights function to load the Keras/tf model weights into the VxmDense PyTorch model.

  • If --load-model is specified but does not contain 'h5', continue to load the initial weights from a PyTorch model file.

Please let me know if you have any questions or suggestions regarding this modification. Thank you for considering this pull request!

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

Successfully merging this pull request may close these issues.

None yet

1 participant