Spaces:
Runtime error
Runtime error
Download script/replace_anything.sh from TDN-M/Inpaint-Anything: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/spaces/TDN-M/Inpaint-Anything/resolve/main/script/replace_anything.sh
- Command line
-
hf download hf://spaces/TDN-M/Inpaint-Anything/script/replace_anything.sh
-
curl -L -o replace_anything.sh https://huggingface.co/spaces/TDN-M/Inpaint-Anything/resolve/main/script/replace_anything.sh
306 Bytes
| python replace_anything.py \ | |
| --input_img ./example/replace-anything/dog.png \ | |
| --coords_type key_in \ | |
| --point_coords 750 500 \ | |
| --point_labels 1 \ | |
| --text_prompt "sit on the swing" \ | |
| --output_dir ./results \ | |
| --sam_model_type "vit_t" \ | |
| --sam_ckpt ./weights/mobile_sam.pt |