Spaces:
Running
Running
Upload 3 files
Browse files- script/fill_anything.sh +13 -0
- script/remove_anything.sh +14 -0
- script/replace_anything.sh +9 -0
script/fill_anything.sh
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python fill_anything.py \
|
2 |
+
--input_img ./example/fill-anything/sample1.png \
|
3 |
+
--coords_type key_in \
|
4 |
+
--point_coords 750 500 \
|
5 |
+
--point_labels 1 \
|
6 |
+
--text_prompt "a teddy bear on a bench" \
|
7 |
+
--dilate_kernel_size 50 \
|
8 |
+
--output_dir ./results \
|
9 |
+
--sam_model_type "vit_t" \
|
10 |
+
--sam_ckpt ./weights/mobile_sam.pt
|
11 |
+
|
12 |
+
|
13 |
+
|
script/remove_anything.sh
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python remove_anything.py \
|
2 |
+
--input_img ./example/remove-anything/dog.jpg \
|
3 |
+
--coords_type key_in \
|
4 |
+
--point_coords 200 450 \
|
5 |
+
--point_labels 1 \
|
6 |
+
--dilate_kernel_size 15 \
|
7 |
+
--output_dir ./results \
|
8 |
+
--sam_model_type "vit_t" \
|
9 |
+
--sam_ckpt ./weights/mobile_sam.pt \
|
10 |
+
--lama_config ./lama/configs/prediction/default.yaml \
|
11 |
+
--lama_ckpt ./pretrained_models/big-lama
|
12 |
+
|
13 |
+
|
14 |
+
|
script/replace_anything.sh
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python replace_anything.py \
|
2 |
+
--input_img ./example/replace-anything/dog.png \
|
3 |
+
--coords_type key_in \
|
4 |
+
--point_coords 750 500 \
|
5 |
+
--point_labels 1 \
|
6 |
+
--text_prompt "sit on the swing" \
|
7 |
+
--output_dir ./results \
|
8 |
+
--sam_model_type "vit_t" \
|
9 |
+
--sam_ckpt ./weights/mobile_sam.pt
|