Skip to content

Migrated AdaIN tutorial to keras 3#2319

Open
kharshith-k wants to merge 2 commits intokeras-team:masterfrom
kharshith-k:AdaIN_tutorial_migration
Open

Migrated AdaIN tutorial to keras 3#2319
kharshith-k wants to merge 2 commits intokeras-team:masterfrom
kharshith-k:AdaIN_tutorial_migration

Conversation

@kharshith-k
Copy link
Copy Markdown
Member

Please find my PR for migrating AdaIN tutorial from keras2 to keras3
Colab Gist

@kharshith-k kharshith-k changed the title Migrated adaIN tutorial to keras 3 Migrated AdaIN tutorial to keras 3 Mar 30, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the AdaIN style transfer example to Keras 3, replacing the tf.data pipeline with a custom keras.utils.PyDataset and removing the tensorflow_datasets dependency. The NeuralStyleTransfer model has been refactored to use compute_loss instead of a custom train_step, and TensorFlow-specific operations have been replaced with keras.ops for backend neutrality. Additionally, the PR introduces a fallback mechanism to generate local data from CIFAR-10 if the expected image directories are missing. I have no feedback to provide.

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.

2 participants