File size: 2,678 Bytes
8901dd8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
license: openrail++
base_model: runwayml/stable-diffusion-v1-5
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
- lora
- cartoon
- illustration
datasets:
- juliaturc/captioned-cartoons
---

# cartoon-lora-aggressive-medium

Fine-tuned LoRA model for generating colorful cartoon-style illustrations.

## Model Details

- **Base Model:** runwayml/stable-diffusion-v1-5
- **Dataset:** juliaturc/captioned-cartoons
- **Training Framework:** Diffusers + LoRA
- **Task:** Text-to-Image Generation (Cartoon Style)

## Training Configuration

```json
{
  "learning_rate": 0.0001,
  "max_train_steps": 1500,
  "rank": 48,
  "lr_scheduler": "cosine"
}
```

## Usage

### Install dependencies

```bash
pip install diffusers transformers torch
```

### Load and generate

```python
import torch
from diffusers import StableDiffusionPipeline

# Load base model
model_id = "runwayml/stable-diffusion-v1-5"
pipe = StableDiffusionPipeline.from_pretrained(
    model_id,
    torch_dtype=torch.float16
)
pipe = pipe.to("cuda")

# Load LoRA weights
pipe.load_lora_weights("yzhdvbQ/cartoon-lora-aggressive-medium")

# Generate image
prompt = "Two people walking in a park with dogs, colorful cartoon style, woman in pink shirt, man in green vest, fall scenery"
image = pipe(prompt, num_inference_steps=30).images[0]
image.save("output.png")
```

## Example Prompts

1. `Two people walking in a park with dogs, colorful cartoon style, woman in pink shirt, man in green vest, fall scenery`
2. `A young woman sitting on a bench reading a book in a city park, wearing a yellow sweater and jeans, autumn trees, colorful cartoon illustration`
3. `A happy family having a picnic in a meadow, parents and two children, red checkered blanket, colorful cartoon style`


## Training Details

This model was fine-tuned on a cartoon illustration dataset with detailed captions describing:
- Characters and their appearance
- Clothing and accessories
- Actions and poses
- Environment and scenery
- Composition and style

The training used Low-Rank Adaptation (LoRA) to efficiently fine-tune Stable Diffusion while keeping the base model frozen.

## Limitations

- Works best with detailed, descriptive prompts
- Optimized for cartoon/illustration style
- May not perform well on photorealistic requests
- Based on Stable Diffusion 1.5 architecture

## Citation

```bibtex
@misc{cartoon-lora-ai54,
  author = {AI54 Course},
  title = {Cartoon LoRA for Stable Diffusion},
  year = {2026},
  publisher = {HuggingFace},
  url = {https://huggingface.co/yzhdvbQ/cartoon-lora-aggressive-medium}
}
```

## License

This model inherits the license from Stable Diffusion (OpenRAIL++)