Instructions to use shgao/edit-anything-v0-4-sd21 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use shgao/edit-anything-v0-4-sd21 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("shgao/edit-anything-v0-4-sd21", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download diffusion_pytorch_model.safetensors from shgao/edit-anything-v0-4-sd21: direct link, hf CLI and curl.
- Browser
- Download file 1.46 GB
-
https://huggingface.co/shgao/edit-anything-v0-4-sd21/resolve/main/diffusion_pytorch_model.safetensors
- Command line
-
hf download hf://shgao/edit-anything-v0-4-sd21/diffusion_pytorch_model.safetensors
-
curl -L -o diffusion_pytorch_model.safetensors https://huggingface.co/shgao/edit-anything-v0-4-sd21/resolve/main/diffusion_pytorch_model.safetensors
1.46 GB
- Xet hash:
- afd68a980ab749ba85a72163c7768c6c088c9f4e5d8de86dffd93ab5244e32c2
- Size of remote file:
- 1.46 GB
- SHA256:
- 3354290c87188f4c86dd461ea4b23eb091873543bb306c9e6cdd6edc32740faa
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.