Skip to content

Commit

Permalink
[cherry-pick] SAM readme (#3161)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>
  • Loading branch information
Sunting78 and zhaoyantao-murray authored Apr 11, 2023
1 parent fb94dee commit 2dd8247
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contrib/SegmentAnything/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ We provide the pretrained model parameters of PaddlePaddle format, including [vi
├── SegmentAnything
│ ├── examples
│ │ └── cityscapes_demo.png
│ ├── modeling
│ └── script
│ ├── segment_anything
│ └── scripts

```

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

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

```bash
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
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
```

2. Point prompt
```bash
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
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
```

3. Mask prompt
```bash
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
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
```

Note:
Expand Down

0 comments on commit 2dd8247

Please sign in to comment.