Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant