-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate StableDiffusion to Keras Core (#1982)
* Migrate StableDiffusion to Keras Core * Runs but wrong answer * format * Add tests for text encoder * Fix softmax op * Use arange for pos ids * Simplify seed handing * Fix predict call for text encoder * Avoid use of `rank` attribute * Fix dtype of pos ids * Update internal layers to Keras Core * Flatten nested folders to match other models * Move `predict_on_batch` to dict inputs * Fixed import for image_encoder * Fix `None` tensor issue * Working in JAX+Torch * Attempt to fix GPU issue for Torch * Another Torch GPU fix attempt * Increase tolerance for image encoder golden value test * Add e2e test to GCB (tf only) * Add stable diffusion to GCB unit tests * Fix pytest flags and create multiframework test * format * Fix pytest flags * lint --------- Co-authored-by: ianjjohnson <3072903+ianstenbit@users.noreply.github.com>
- Loading branch information
1 parent
e83f229
commit 9c18f56
Showing
14 changed files
with
214 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
keras_cv/models/stable_diffusion/__internal__/layers/__init__.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.