Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
datasets:
|
3 |
+
- lambdalabs/pokemon-blip-captions
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
library_name: diffusers
|
7 |
+
pipeline_tag: text-to-image
|
8 |
+
---
|
9 |
+
|
10 |
+
# Model Card for my pokemon generating AI
|
11 |
+
|
12 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
13 |
+
|
14 |
+
I trained this model using LoRA and Stable Diffusion v1.4
|
15 |
+
# Model Details
|
16 |
+
|
17 |
+
## How to use
|
18 |
+
Sample code:
|
19 |
+
```
|
20 |
+
from diffusers import StableDiffusionPipeline
|
21 |
+
import torch
|
22 |
+
|
23 |
+
model_path = "sr5434/sd-pokemon-model-lora"
|
24 |
+
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
|
25 |
+
pipe.unet.load_attn_procs(model_path)
|
26 |
+
pipe.to("cuda")
|
27 |
+
|
28 |
+
prompt = input("Prompt:")
|
29 |
+
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
|
30 |
+
image.save("pokemon.png")
|
31 |
+
```
|