You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments