Skip to content

v1.1

Latest

Choose a tag to compare

@YoussefElsafi YoussefElsafi released this 13 Mar 15:41
· 4 commits to main since this release
263a613

What's New: Gemini 2.0 Native Image Output Integration

The following enhancements have been implemented, leveraging the Gemini 2.0 Flash Experimental model for advanced image generation and editing capabilities:

  • 🖼️ Native Image Generation Output Support: This repository now provides complete support for the Native Image Generation Output.

  • 📝➡️🖼️ Image Generation Script (ImageGeneration.py): A new script, ImageGeneration.py, has been added to demonstrate image generation from textual prompts using the Gemini 2.0 Flash Experimental model. The script includes examples for specifying desired output modalities (text and image) and setting the temperature parameter for creative control.

  • 📸✏️ Image Editing Script (ImageEditing.py): ImageEditing.py has been introduced to showcase image editing capabilities. This script illustrates the process of uploading an image, providing a text-based editing instruction, and retrieving the modified image from the Gemini API. The temperature parameter is configured for optimal editing fidelity.

  • 🔄💬 Multi-Turn Image Editing (MultiImageEditing.py): MultiImageEditing.py has been implemented to demonstrate multi-turn, conversational image editing. This script establishes a chat session, uploads an image, and iteratively modifies it based on subsequent textual prompts, showcasing the model's contextual awareness across multiple interactions.

  • 🖼️ Example Images: An images/ directory has been added, containing sample input images (e.g., car.jpg, croissant.jpeg) for use with the image editing scripts.

  • 🎉 Generated Images Directory: A generated_images/ directory has been included, showcasing the output images generated, providing a hands-on visual guide for users.

  • 📖 Details.md: Comprehensive documentation is provided in Details.md, detailing the usage of the Gemini 2.0 Flash Experimental model and its various parameters.

Access to these features is available in the Image Generation/Gemini 2.0 Native Image Output/ directory.