Downloads · 30 days
28
9% of all-time downloads
manupm87/finetuned-sd-1.4-oldbookillustrations
finetuned-sd-1.4-oldbookillustrations is a text-to-image model from manupm87. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
Finetuning de CompVis/stable-diffusion-v1-4 sobre el dataset gigant/oldbookillustrations.
Downloads · 30 days
28
9% of all-time downloads
All-time downloads
297
Public
Parameters
860M
19.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors12.4 GB · 100%
From the Hugging Face model README
Finetuning de CompVis/stable-diffusion-v1-4
sobre el dataset gigant/oldbookillustrations.
🔁 También disponible como LoRA (adaptador ligero que se carga sobre el modelo base):
manupm87/finetuned-sd-1.4-oldbookillustrations-lora.
Solo se ha finetuneado la UNet; el resto de componentes (VAE, text encoder, tokenizer y
scheduler) se mantienen del modelo base. Este repositorio contiene el pipeline completo,
listo para usar con una sola llamada a from_pretrained.
Trigger de estilo: el modelo se finetuneo anadiendo el sufijo old book illustration, engraving, antique a cada
descripcion. Incluye ese mismo texto al final de tu prompt (como en el ejemplo) para activar
con fuerza el estilo de ilustracion de libro antiguo.
import torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained(
"manupm87/finetuned-sd-1.4-oldbookillustrations",
torch_dtype=torch.float16,
).to("cuda")
prompt = "A sailing ship with billowing sails rides the tall waves of a stormy sea, old book illustration, engraving, antique"
image = pipe(prompt).images[0]
image.save("output.png")
| Parametro | Valor |
|---|---|
| Modelo base | CompVis/stable-diffusion-v1-4 |
| Dataset | gigant/oldbookillustrations (columnas 1600px / info_alt) |
| Componente finetuneada | UNet (VAE y text encoder congelados) |
| Epocas | 5 |
| Learning rate | 1e-05 |
| Batch size | 6 |
| Resolucion | 512x512 |
| Optimizador | AdamW |
| Trigger de estilo | old book illustration, engraving, antique |
Preprocesado: a cada imagen del dataset (con descripcion no vacia) se le aplica
Resize + CenterCrop a 512x512.
Modelo entrenado con fines educativos sobre un dataset pequeno y especifico (ilustraciones de libros antiguos), por lo que su dominio es limitado. Hereda los sesgos y limitaciones del modelo base Stable Diffusion v1-4. Distribuido bajo licencia CreativeML OpenRAIL-M.
Generadas con este modelo (trigger de estilo incluido, misma semilla):
| Prompt | Imagen |
|---|---|
| A sailing ship with billowing sails rides the tall waves of a stormy sea | <img src="samples/sample_0.png" width="256"> |
| A ruined castle stands on a cliff overlooking the misty sea at dusk | <img src="samples/sample_1.png" width="256"> |
| A young girl wanders alone into a forest of tall, twisted trees | <img src="samples/sample_2.png" width="256"> |
| A solitary lighthouse rises above the rocky shore as waves break below it | <img src="samples/sample_3.png" width="256"> |
| A steam locomotive races across the countryside, trailing a long plume of smoke | <img src="samples/sample_4.png" width="256"> |