-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: LVM - Added support for Image Generation models
Features: * Generate images from text prompt (prompt, negative prompt, width, height, seed, guidance scale) * Edit an existing images using a text prompt (and optional mask) * Upscale image * Show image (works in notebook environments) * Save image (saved image also includes the image generation parameters) Example usage: ```python model = ImageGenerationModel.from_pretrained("imagegeneration@002") images = model.generate_images( prompt="Astronaut riding a horse", # Optional: number_of_images=1, width=1024, height=768, seed=1, guidance_scale=15, ) images[0].show() images[0].save("image1.png") ``` PiperOrigin-RevId: 557736987
- Loading branch information
1 parent
caee592
commit b3729c1
Showing
4 changed files
with
793 additions
and
1 deletion.
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
Oops, something went wrong.