Views
No views yet
pip install diffusers transformers torch1from diffusers import DiffusionPipeline
2import torch
3
4# Load model from Hugging Face
5pipe = DiffusionPipeline.from_pretrained("aiyouthalliance/Free-Image-Generation")
6
7# Move to GPU if available
8device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
9pipe = pipe.to(device)
10
11# Generate image
12prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
13image = pipe(prompt).images[0]
14
15# Save the generated image
16image.save("astronaut_jungle.png")1# Load in half precision for memory efficiency
2pipe = DiffusionPipeline.from_pretrained(
3 "aiyouthalliance/Free-Image-Generation",
4 torch_dtype=torch.float16
5)
6pipe = pipe.to(device)1# Customize generation parameters
2image = pipe(
3 prompt="A futuristic cityscape with flying cars, neon lights, detailed, 8k",
4 num_inference_steps=50,
5 guidance_scale=7.5,
6 negative_prompt="blurry, low quality, distorted"
7).images[0]Users should comply with OpenRAIL-M restrictions for derivative use or redistribution of the base model weights.
| Feature | Specification |
|---|---|
| Total Parameters | 1.07 Billion |
| Base Architecture | Stable Diffusion 1.5 |
| Fine-Tuning | Multiple LoRA modules merged |
| Output Resolution | 512×512 pixels |
1@misc{aiyouthalliance2025freeimagegen,
2 author = {AI Youth Alliance},
3 title = {Free-Image-Generation},
4 year = {2025},
5 publisher = {Hugging Face},
6 journal = {Hugging Face repository},
7 howpublished = {\url{https://huggingface.co/aiyouthalliance/Free-Image-Generation}}
8}