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
File size: 563 Bytes
a0d0fd4 a44da19 b65be84 a44da19 a0d0fd4 3e95775 a44da19 93bcfb3 a48c2c8 3e95775 a48c2c8 3e95775 a48c2c8 3e95775 a48c2c8 fcd10db | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ---
library_name: diffusers
pipeline_tag: text-to-image
base_model: stabilityai/stable-diffusion-xl-base-1.0
tags:
- lora
- sdxl
- diffusers
---
# Cat in Space 🐱🚀
This is a **Stable Diffusion XL** model fine-tuned to generate cartoon cats in space.
## Example
```python
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained("freshcodestech/cat_in_space", torch_dtype=torch.float16)
pipe.to("cuda")
image = pipe("a cartoon cat in a space suit floating in a colorful galaxy").images[0]
image.save("cat.png") |