Downloads · 30 days
7
7% of all-time downloads
Juanpeg1729/sdxl-lora-juguete-v1
sdxl-lora-juguete-v1 is a text-to-image model from Juanpeg1729. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as openrail++.
Downloads · 30 days
7
7% of all-time downloads
All-time downloads
94
Public
Repo size
116 MB
Likes
0
Public
Click a slice to open those files.
.safetensors46.8 MB · 75%
From the Hugging Face model README
Modelo adaptado con LoRA para Stable Diffusion XL. Entrenado para generar: photo of sks bear toy.
Aquí puedes ver la curva de convergencia del modelo:

Este código comprueba automáticamente si tienes GPU y muestra la imagen al finalizar.
import torch
from diffusers import DiffusionPipeline, AutoencoderKL
# 0. Verificación de seguridad (GPU Check)
if not torch.cuda.is_available():
raise RuntimeError("❌ ERROR: No se detecta GPU. En Colab, vete a 'Entorno de ejecución' > 'Cambiar tipo' > 'T4 GPU'.")
# 1. Cargar el modelo base
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
vae=vae,
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
)
pipe.to("cuda")
# 2. Cargar el LoRA
pipe.load_lora_weights("Juanpeg1729/sdxl-lora-juguete-v1")
# 3. Generar imagen
print("Generando...")
prompt = "photo of sks bear toy in a cyberpunk city, neon lights, 8k"
image = pipe(prompt, num_inference_steps=30).images[0]
# 4. Guardar y Mostrar
image.save("resultado.png")
image