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
|
@@ -1,3 +1,40 @@
|
|
| 1 |
-
--
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
license: creativeml-openrail-m
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
base_model:
|
| 5 |
+
- stabilityai/stable-diffusion-xl-base-1.0
|
| 6 |
+
pipeline_tag: text-to-image
|
| 7 |
+
tags:
|
| 8 |
+
- text=to-image
|
| 9 |
+
- lora
|
| 10 |
+
- stable-diffusion
|
| 11 |
+
|
| 12 |
+
Model Description
|
| 13 |
+
This model is a fine-tuned Stable Diffusion model trained to generate cartoon/anime-style characters in different outfits, roles, and professions. The outputs are vibrant, colorful, and suitable for illustrations, educational content, and storytelling.
|
| 14 |
+
|
| 15 |
+
Intended Uses
|
| 16 |
+
Creating illustrations for children’s books.
|
| 17 |
+
Designing characters for storytelling, comics, or animations.
|
| 18 |
+
How to Use
|
| 19 |
+
from diffusers import StableDiffusionPipeline
|
| 20 |
+
|
| 21 |
+
import torch
|
| 22 |
+
|
| 23 |
+
pipe = StableDiffusionPipeline.from_pretrained("username/cat_in_space", torch_dtype=torch.float16).to("cuda")
|
| 24 |
+
|
| 25 |
+
prompt = "a cartoon cat dressed as a firefighter, standing in front of a fire truck"
|
| 26 |
+
|
| 27 |
+
image = pipe(prompt).images[0]
|
| 28 |
+
|
| 29 |
+
image.save("cat_firefighter.png")
|
| 30 |
+
|
| 31 |
+
Prompt Examples
|
| 32 |
+
cartoon cat in a space suit is a firefighter
|
| 33 |
+
cartoon cat in a space suit with an ambulance
|
| 34 |
+
cartoon cat in a space suit eating popcorn and watching a movie
|
| 35 |
+
cartoon cat in a space suit looking at a cell phone
|
| 36 |
+
cartoon cat in a space suit pressing a big button
|
| 37 |
+
cartoon cat in a space suit is very old
|
| 38 |
+
cartoon cat in a space suit is exercising in the gym
|
| 39 |
+
cartoon cat in a space suit with his child
|
| 40 |
+
cartoon cat in a space suit wakes up
|