Downloads · 30 days
31
1% of all-time downloads
Adrenex/chamana
chamana is a text-to-image model from Adrenex. Use it when you need an image from a text prompt. It is set up for diffusers.
This repository contains code and instructions for using the stabilityai/stable-diffusion-xl-base-1.0 model from Hugging Face's Transformers library to generate images from textual descriptions. The model utilizes dif…
Downloads · 30 days
31
1% of all-time downloads
All-time downloads
2.5K
Public
Repo size
215 MB
Likes
3
Public
Click a slice to open those files.
.safetensors23.4 MB · 93%
From the Hugging Face model README
This repository contains code and instructions for using the stabilityai/stable-diffusion-xl-base-1.0 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.

To use this model for generating images from text prompts, follow these steps:
Environment Setup: Make sure you have Python installed on your system. You can also use a virtual environment for isolation.
Install Dependencies: Install the required Python packages by running the following command:
pip install -r requirements.txt
3.## Usage
Here is an example of how you can use the stabilityai/stable-diffusion-xl-base-1.0 model for text-to-image generation in Python using the diffusers library.
from diffusers import DiffusionPipeline
import torch
# Load LoRA weights
lora_weights = torch.load("/path/to/lora_weights/pytorch_lora_weights.safetensors")
# Initialize the DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16)
pipe.to("cuda")
# Load LoRA weights into the pipeline
pipe.load_lora_weights(lora_weights)
# Text prompt for image generation
prompt = "black ring for men"
# Generate Images
image = pipe(prompt, num_inference_steps=30, guidance_scale=7.5).images
output_images directory by default.This model can be incredibly useful in the art and cinema movie production industry, especially for creating visuals based on textual descriptions. In the case of Aiyad Radi, an Iraqi actor and comedian, this tool can aid in visualizing character designs, scenes, and concepts before actual production. Directors, artists, and producers can utilize the generated images as a reference to plan and visualize their projects effectively.
Please note that the model's outputs might vary, and the generated images are based on the input text prompts. The model's behavior is influenced by its training data and might not always produce accurate or desired results.
Feel free to experiment, provide feedback, and contribute to this repository if you'd like to enhance its functionality!