Views
No views yet
adrenex/outfitt2i model from Hugging Face's Transformers library to generate images from textual descriptions. The model utilizes diffusion models for high-quality image synthesis based on the provided text prompts.





pip install -r requirements.txt1from diffusers import DiffusionPipeline
2import torch
3
4# Load LoRA weights
5lora_weights = torch.load("/path/to/lora_weights/pytorch_lora_weights.safetensors")
6
7# Initialize the DiffusionPipeline
8pipe = DiffusionPipeline.from_pretrained("adrenex/outfitt2i", torch_dtype=torch.float16)
9pipe.to("cuda")
10
11# Load LoRA weights into the pipeline
12pipe.load_lora_weights(lora_weights)
13
14# Text prompt for image generation
15prompt = "photo of Iyad Radi with cat in the pool"
16
17# Generate Images
18image = pipe(prompt, num_inference_steps=30, guidance_scale=7.5).imagesoutput_images directory by default.