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
Add diffusers config and metadata
Browse files
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 =
|
| 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 |
-
|
| 36 |
-
|
| 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")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|