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

Add CLIP to KerasCV #2331

Merged

Conversation

divyashreepathihalli
Copy link
Collaborator

@divyashreepathihalli divyashreepathihalli commented Feb 2, 2024

Thank you @DavidLandup0 for the initial code port (to tf.keras) for image encoder and pre-processor!

  • CLIP Image encoder
  • CLIP Text encoder
  • CLIP Encoder
  • CLIP tokenizer
  • CLIP model
  • tests
  • presets
  • numerics

@divyashreepathihalli divyashreepathihalli marked this pull request as draft February 2, 2024 04:44
Copy link
Member

@mattdangerw mattdangerw left a comment

Choose a reason for hiding this comment

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

Overall looks good! Looks like the tokenizer has a lot of dead code that could be cleaned up.

keras_cv/models/feature_extractor/clip/clip_encoder.py Outdated Show resolved Hide resolved
keras_cv/models/feature_extractor/clip/clip_encoder.py Outdated Show resolved Hide resolved
keras_cv/models/feature_extractor/clip/clip_model.py Outdated Show resolved Hide resolved
keras_cv/models/feature_extractor/clip/clip_tokenizer.py Outdated Show resolved Hide resolved
keras_cv/models/feature_extractor/clip/clip_tokenizer.py Outdated Show resolved Hide resolved
keras_cv/models/feature_extractor/clip/clip_tokenizer.py Outdated Show resolved Hide resolved
keras_cv/models/feature_extractor/clip/clip_tokenizer.py Outdated Show resolved Hide resolved
@divyashreepathihalli divyashreepathihalli added the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
@divyashreepathihalli divyashreepathihalli added the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
Copy link
Collaborator

@sampathweb sampathweb left a comment

Choose a reason for hiding this comment

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

LGTM. Lets wait for Matt to resolve his comments.

@divyashreepathihalli divyashreepathihalli added the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
@divyashreepathihalli divyashreepathihalli added the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 21, 2024
@divyashreepathihalli divyashreepathihalli merged commit 15db57c into keras-team:master Feb 22, 2024
10 checks passed
divyashreepathihalli added a commit that referenced this pull request Feb 22, 2024
@awsaf49 awsaf49 mentioned this pull request Mar 13, 2024
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.

5 participants