Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- stable-diffusion
|
| 4 |
+
- text-to-image
|
| 5 |
+
- disney
|
| 6 |
+
license: mit
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Disney-Style Portrait Generator
|
| 10 |
+
|
| 11 |
+
This model is fine-tuned on Disney-style images using Stable Diffusion. It generates Disney-style portraits from text prompts.
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from diffusers import StableDiffusionPipeline
|
| 17 |
+
import torch
|
| 18 |
+
|
| 19 |
+
# Load the model
|
| 20 |
+
model = StableDiffusionPipeline.from_pretrained("your-username/your-model-name", torch_dtype=torch.float16).to("cuda")
|
| 21 |
+
|
| 22 |
+
# Generate an image
|
| 23 |
+
prompt = "A Disney-style portrait of a princess"
|
| 24 |
+
image = model(prompt).images[0]
|
| 25 |
+
image.save("disney_princess.png")
|