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
|
@@ -24,7 +24,7 @@ from diffusers import StableDiffusionPipeline
|
|
| 24 |
|
| 25 |
import torch
|
| 26 |
|
| 27 |
-
pipe = StableDiffusionPipeline.from_pretrained("username/
|
| 28 |
|
| 29 |
prompt = "a cartoon cat dressed as a firefighter, standing in front of a fire truck"
|
| 30 |
|
|
|
|
| 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 |
|