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
|
Download README.md from freshcodes/cat_in_space: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/freshcodes/cat_in_space/resolve/main/README.md
- Command line
-
hf download hf://freshcodes/cat_in_space/README.md
-
curl -L -o README.md https://huggingface.co/freshcodes/cat_in_space/resolve/main/README.md
563 Bytes
| 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") |