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

[Vertex AI] Add ImageGenerationResponse for decoding PredictResponse #14216

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

andrewheard
Copy link
Contributor

@andrewheard andrewheard commented Dec 5, 2024

Added a type ImageGenerationResponse for decoding the PredictResponse from an image generation request.

Added ImagenImage and ImagenImageRepresentable, which are analogous to Part and PartsRepresentable for GenerativeModel. The types we vend in the public API will conform to ImagenImageRepresentable, allowing them to be used as input to other operations like image upscaling and image editing. Additionally, we can make system types like UIImage or CIImage conform to ImagenImageRepresentable, like PartsRepresentable, to allow these types as input in the future.

Note: Naming is all to be TBD.

#no-changelog

@google-oss-bot
Copy link

1 Warning
⚠️ New public headers were added, did you remember to add them to the umbrella header?

Generated by 🚫 Danger

@andrewheard andrewheard marked this pull request as ready for review December 6, 2024 00:51
@andrewheard andrewheard requested a review from paulb777 December 6, 2024 00:51
@andrewheard andrewheard merged commit e773941 into vertex-imagen Dec 6, 2024
50 checks passed
@andrewheard andrewheard deleted the ah/vertex-imagen-response branch December 6, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants