Skip to content

Commit 2dd8247

Browse files
[cherry-pick] SAM readme (#3161)
* [feature Industry Inspect] * [add qinspector repo] * [update readme] * [del iinsepect] * [update readme] * Update mvtec.py * Update predict.py * Update train.py * Update val.py * Merge branch 'IInspection' of github.com:Sunting78/PaddleSeg into IInspection * Update train.py * [update readme] * [update post] * update read * update readme * update readme * update readme * update readme * update readme * update readme * update readme * update readme * update readme * update bbox * update predict * update args * Update README.md * [cherry-pick] qinspector * update quickstart * update quickstart * update image * update image * update data.md * [update v28seg] * [update sam readme] --------- Co-authored-by: zhaofefe <61047836+zhaoyantao-murray@users.noreply.github.com>
1 parent fb94dee commit 2dd8247

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contrib/SegmentAnything/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ We provide the pretrained model parameters of PaddlePaddle format, including [vi
4444
├── SegmentAnything
4545
│ ├── examples
4646
│ │ └── cityscapes_demo.png
47-
│ ├── modeling
48-
│ └── script
47+
│ ├── segment_anything
48+
│ └── scripts
4949

5050
```
5151

@@ -54,7 +54,7 @@ In this step, we start a gradio service with the following scrip on local machin
5454

5555
1. Run the following script:
5656
```bash
57-
python script/amg_paddle.py --model-type [vit_l/vit_b/vit_h] # default is vit_h
57+
python scripts/amg_paddle.py --model-type [vit_l/vit_b/vit_h] # default is vit_h
5858
5959
```
6060
Note:
@@ -76,17 +76,17 @@ You can run the following commands to produce masks from different types of prom
7676
1. Box prompt
7777

7878
```bash
79-
python script/promt_predict.py --input_path xxx.png --box_prompt 1050 370 1500 700 --model-type [vit_l/vit_b/vit_h] # default is vit_h
79+
python scripts/promt_predict.py --input_path xxx.png --box_prompt 1050 370 1500 700 --model-type [vit_l/vit_b/vit_h] # default is vit_h
8080
```
8181

8282
2. Point prompt
8383
```bash
84-
python script/promt_predict.py --input_path xxx.png --point_prompt 1200 450 --model-type [vit_l/vit_b/vit_h] # default is vit_h
84+
python scripts/promt_predict.py --input_path xxx.png --point_prompt 1200 450 --model-type [vit_l/vit_b/vit_h] # default is vit_h
8585
```
8686

8787
3. Mask prompt
8888
```bash
89-
python script/promt_predict.py --input_path xxx.png --mask_prompt xxx.png --model-type [vit_l/vit_b/vit_h] # default is vit_h
89+
python scripts/promt_predict.py --input_path xxx.png --mask_prompt xxx.png --model-type [vit_l/vit_b/vit_h] # default is vit_h
9090
```
9191

9292
Note:

0 commit comments

Comments
 (0)