update readme
This commit is contained in:
11
README.md
11
README.md
@@ -28,9 +28,13 @@ pip install -r requirements.txt
|
||||
|
||||
Then download the model ckpts files in: https://huggingface.co/microsoft/OmniParser, and put them under weights/, default folder structure is: weights/icon_detect, weights/icon_caption_florence, weights/icon_caption_blip2.
|
||||
|
||||
Finally, convert the safetensor to .pt file.
|
||||
For v1:
|
||||
convert the safetensor to .pt file.
|
||||
```python
|
||||
python weights/convert_safetensor_to_pt.py
|
||||
|
||||
For v1.5:
|
||||
download 'model_v1_5.pt' from https://huggingface.co/microsoft/OmniParser/tree/main/icon_detect_v1_5, make a new dir: weights/icon_detect_v1_5, and put it inside the folder. No weight conversion is needed.
|
||||
```
|
||||
|
||||
## Examples:
|
||||
@@ -39,7 +43,10 @@ We put together a few simple examples in the demo.ipynb.
|
||||
## Gradio Demo
|
||||
To run gradio demo, simply run:
|
||||
```python
|
||||
python gradio_demo.py
|
||||
# For v1
|
||||
python gradio_demo.py --icon_detect_model weights/icon_detect/best.pt --icon_caption_model florence2
|
||||
# For v1.5
|
||||
python gradio_demo.py --icon_detect_model weights/icon_detect_v1_5/model_v1_5.pt --icon_caption_model florence2
|
||||
```
|
||||
|
||||
## Model Weights License
|
||||
|
||||
Reference in New Issue
Block a user