Instructions to use alex4727/InstantDrag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alex4727/InstantDrag with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("alex4727/InstantDrag", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download flowdiffusion/safety_checker/model.safetensors from alex4727/InstantDrag: direct link, hf CLI and curl.
- Browser
- Download file 1.22 GB
-
https://huggingface.co/alex4727/InstantDrag/resolve/refs%2Fpr%2F2/flowdiffusion/safety_checker/model.safetensors
- Command line
-
hf download hf://alex4727/InstantDrag@refs/pr/2/flowdiffusion/safety_checker/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/alex4727/InstantDrag/resolve/refs%2Fpr%2F2/flowdiffusion/safety_checker/model.safetensors
1.22 GB
- Xet hash:
- 606cf8682e672adf44f1ab5f51410e1a30b3243339e7629432dcfcda2cc67a68
- Size of remote file:
- 1.22 GB
- SHA256:
- fb351a5ded815c3ff744968ad9c6b218d071b9d313d04f35e813b84b4c0ffde8
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.