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 jax to tfjs conversion with dynamic models #41

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

Conversation

thekevinscott
Copy link

I'm converting the MAXIM models into Tensorflow.js models for use in Javascript.

When using fixed sizes, the model converts fine. However, using dynamic sizes (polymorphism) fails. For a discussion of why, see here.

This PR adjusts the UpSampleRatio block to avoid the casting to int, which allows dynamically sized inputs (although inputs must still be a multiple of 64, which must be enforced outside of the model call).

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