Cyril-7/AI-Generated-Imagery

Cyril Johnson

0

ML Engineer

Software Engineer

AI Developer

📷 AI-Generated Imagery 📸
This repository contains code for generating images from prompts using a pre-trained Stable Diffusion model. The model allows for customizable guidance scale, enabling fine-tuning of generated image characteristics.

Usage

Install the required dependencies by running pip install -r requirements.txt.
Modify the configuration parameters in config.py to adjust the device, seed, image generation steps, model ID, image size, and guidance scale.
Run generate_image.py and provide your prompts to generate images. You can specify the number of images to generate for each prompt.

Example

from config import CFG from generate_image import generate_image # Initialize model image_gen_model = initialize_model() # Generate images prompts = ["astronaut in moon"] generated_images = generate_image(prompts, image_gen_model, num_images=3) # Display generated images for i, image in enumerate(generated_images): image.show()
Like this project
0

Posted Jul 21, 2024

Generate images from prompts using a pre-trained Stable Diffusion model with customizable guidance scale.

Likes

0

Views

0

Tags

ML Engineer

Software Engineer

AI Developer

Cyril-7/Image-to-Text
Cyril-7/Image-to-Text
Indoor Navigation System Using Augmented Reality (AR)
Indoor Navigation System Using Augmented Reality (AR)
WhatsApp Bot with Meta Cloud API and Flask
WhatsApp Bot with Meta Cloud API and Flask