freshcodestech commited on
Commit
a48c2c8
·
verified ·
1 Parent(s): beac42a

Add diffusers config and metadata

Browse files
Files changed (1) hide show
  1. README.md +8 -29
README.md CHANGED
@@ -9,36 +9,15 @@ license: creativeml-openrail-m
9
 
10
  # Cat in Space 🐱🚀
11
 
12
- This is a Stable Diffusion XL model fine-tuned to generate cats in space.
13
-
14
- # Model Description
15
- This model is a fine-tuned Stable Diffusion model trained to generate cartoon/anime-style characters in different outfits, roles, and professions.
16
- The outputs are vibrant, colorful, and suitable for illustrations, educational content, and storytelling.
17
-
18
- # Intended Uses
19
- - Creating illustrations for children’s books.
20
- - Designing characters for storytelling, comics, or animations.
21
-
22
- # How to Use
23
- from diffusers import StableDiffusionPipeline
24
 
 
 
 
25
  import torch
26
 
27
- pipe = StableDiffusionPipeline.from_pretrained("username/cat_in_space", torch_dtype=torch.float16).to("cuda")
28
-
29
- prompt = "a cartoon cat dressed as a firefighter, standing in front of a fire truck"
30
-
31
- image = pipe(prompt).images[0]
32
-
33
- image.save("cat_firefighter.png")
34
 
35
- # Prompt Examples
36
- - cartoon cat in a space suit is a firefighter
37
- - cartoon cat in a space suit with an ambulance
38
- - cartoon cat in a space suit eating popcorn and watching a movie
39
- - cartoon cat in a space suit looking at a cell phone
40
- - cartoon cat in a space suit pressing a big button
41
- - cartoon cat in a space suit is very old
42
- - cartoon cat in a space suit is exercising in the gym
43
- - cartoon cat in a space suit with his child
44
- - cartoon cat in a space suit wakes up
 
9
 
10
  # Cat in Space 🐱🚀
11
 
12
+ This is a **Stable Diffusion XL** model fine-tuned to generate cartoon cats in space.
 
 
 
 
 
 
 
 
 
 
 
13
 
14
+ ## Example
15
+ ```python
16
+ from diffusers import DiffusionPipeline
17
  import torch
18
 
19
+ pipe = DiffusionPipeline.from_pretrained("freshcodestech/cat_in_space", torch_dtype=torch.float16)
20
+ pipe.to("cuda")
 
 
 
 
 
21
 
22
+ image = pipe("a cartoon cat in a space suit floating in a colorful galaxy").images[0]
23
+ image.save("cat.png")