Instructions to use freshcodes/cat_in_space with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use freshcodes/cat_in_space with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("freshcodes/cat_in_space") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,18 +11,20 @@ tags:
|
|
| 11 |
- stable-diffusion
|
| 12 |
---
|
| 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 |
|
| 17 |
-
Intended Uses
|
| 18 |
-
Creating illustrations for children’s books.
|
| 19 |
-
Designing characters for storytelling, comics, or animations.
|
| 20 |
-
|
|
|
|
| 21 |
from diffusers import StableDiffusionPipeline
|
| 22 |
|
| 23 |
import torch
|
| 24 |
|
| 25 |
-
pipe = StableDiffusionPipeline.from_pretrained("username/
|
| 26 |
|
| 27 |
prompt = "a cartoon cat dressed as a firefighter, standing in front of a fire truck"
|
| 28 |
|
|
@@ -30,13 +32,13 @@ image = pipe(prompt).images[0]
|
|
| 30 |
|
| 31 |
image.save("cat_firefighter.png")
|
| 32 |
|
| 33 |
-
Prompt Examples
|
| 34 |
-
cartoon cat in a space suit is a firefighter
|
| 35 |
-
cartoon cat in a space suit with an ambulance
|
| 36 |
-
cartoon cat in a space suit eating popcorn and watching a movie
|
| 37 |
-
cartoon cat in a space suit looking at a cell phone
|
| 38 |
-
cartoon cat in a space suit pressing a big button
|
| 39 |
-
cartoon cat in a space suit is very old
|
| 40 |
-
cartoon cat in a space suit is exercising in the gym
|
| 41 |
-
cartoon cat in a space suit with his child
|
| 42 |
-
cartoon cat in a space suit wakes up
|
|
|
|
| 11 |
- stable-diffusion
|
| 12 |
---
|
| 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/LingoSpace", torch_dtype=torch.float16).to("cuda")
|
| 28 |
|
| 29 |
prompt = "a cartoon cat dressed as a firefighter, standing in front of a fire truck"
|
| 30 |
|
|
|
|
| 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
|