Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,80 +1,10 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
π’ [[Project Page](https://microsoft.github.io/OmniParser/)] [[V2 Blog Post](https://www.microsoft.com/en-us/research/articles/omniparser-v2-turning-any-llm-into-a-computer-use-agent/)] [[Models V2](https://huggingface.co/microsoft/OmniParser-v2.0)] [[Models V1.5](https://huggingface.co/microsoft/OmniParser)] [[HuggingFace Space Demo](https://huggingface.co/spaces/microsoft/OmniParser-v2)]
|
| 12 |
-
|
| 13 |
-
**OmniParser** is a comprehensive method for parsing user interface screenshots into structured and easy-to-understand elements, which significantly enhances the ability of GPT-4V to generate actions that can be accurately grounded in the corresponding regions of the interface.
|
| 14 |
-
|
| 15 |
-
## News
|
| 16 |
-
- [2025/3] We support local logging of trajecotry so that you can use OmniParser+OmniTool to build training data pipeline for your favorate agent in your domain. [Documentation WIP]
|
| 17 |
-
- [2025/3] We are gradually adding multi agents orchstration and improving user interface in OmniTool for better experience.
|
| 18 |
-
- [2025/2] We release OmniParser V2 [checkpoints](https://huggingface.co/microsoft/OmniParser-v2.0). [Watch Video](https://1drv.ms/v/c/650b027c18d5a573/EWXbVESKWo9Buu6OYCwg06wBeoM97C6EOTG6RjvWLEN1Qg?e=alnHGC)
|
| 19 |
-
- [2025/2] We introduce OmniTool: Control a Windows 11 VM with OmniParser + your vision model of choice. OmniTool supports out of the box the following large language models - OpenAI (4o/o1/o3-mini), DeepSeek (R1), Qwen (2.5VL) or Anthropic Computer Use. [Watch Video](https://1drv.ms/v/c/650b027c18d5a573/EehZ7RzY69ZHn-MeQHrnnR4BCj3by-cLLpUVlxMjF4O65Q?e=8LxMgX)
|
| 20 |
-
- [2025/1] V2 is coming. We achieve new state of the art results 39.5% on the new grounding benchmark [Screen Spot Pro](https://github.com/likaixin2000/ScreenSpot-Pro-GUI-Grounding/tree/main) with OmniParser v2 (will be released soon)! Read more details [here](https://github.com/microsoft/OmniParser/tree/master/docs/Evaluation.md).
|
| 21 |
-
- [2024/11] We release an updated version, OmniParser V1.5 which features 1) more fine grained/small icon detection, 2) prediction of whether each screen element is interactable or not. Examples in the demo.ipynb.
|
| 22 |
-
- [2024/10] OmniParser was the #1 trending model on huggingface model hub (starting 10/29/2024).
|
| 23 |
-
- [2024/10] Feel free to checkout our demo on [huggingface space](https://huggingface.co/spaces/microsoft/OmniParser)! (stay tuned for OmniParser + Claude Computer Use)
|
| 24 |
-
- [2024/10] Both Interactive Region Detection Model and Icon functional description model are released! [Hugginface models](https://huggingface.co/microsoft/OmniParser)
|
| 25 |
-
- [2024/09] OmniParser achieves the best performance on [Windows Agent Arena](https://microsoft.github.io/WindowsAgentArena/)!
|
| 26 |
-
|
| 27 |
-
## Install
|
| 28 |
-
First clone the repo, and then install environment:
|
| 29 |
-
```python
|
| 30 |
-
cd OmniParser
|
| 31 |
-
conda create -n "omni" python==3.12
|
| 32 |
-
conda activate omni
|
| 33 |
-
pip install -r requirements.txt
|
| 34 |
-
```
|
| 35 |
-
|
| 36 |
-
Ensure you have the V2 weights downloaded in weights folder (ensure caption weights folder is called icon_caption_florence). If not download them with:
|
| 37 |
-
```
|
| 38 |
-
# download the model checkpoints to local directory OmniParser/weights/
|
| 39 |
-
for f in icon_detect/{train_args.yaml,model.pt,model.yaml} icon_caption/{config.json,generation_config.json,model.safetensors}; do huggingface-cli download microsoft/OmniParser-v2.0 "$f" --local-dir weights; done
|
| 40 |
-
mv weights/icon_caption weights/icon_caption_florence
|
| 41 |
-
```
|
| 42 |
-
|
| 43 |
-
<!-- ## [deprecated]
|
| 44 |
-
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.
|
| 45 |
-
|
| 46 |
-
For v1:
|
| 47 |
-
convert the safetensor to .pt file.
|
| 48 |
-
```python
|
| 49 |
-
python weights/convert_safetensor_to_pt.py
|
| 50 |
-
|
| 51 |
-
For v1.5:
|
| 52 |
-
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.
|
| 53 |
-
``` -->
|
| 54 |
-
|
| 55 |
-
## Examples:
|
| 56 |
-
We put together a few simple examples in the demo.ipynb.
|
| 57 |
-
|
| 58 |
-
## Gradio Demo
|
| 59 |
-
To run gradio demo, simply run:
|
| 60 |
-
```python
|
| 61 |
-
python gradio_demo.py
|
| 62 |
-
```
|
| 63 |
-
|
| 64 |
-
## Model Weights License
|
| 65 |
-
For the model checkpoints on huggingface model hub, please note that icon_detect model is under AGPL license since it is a license inherited from the original yolo model. And icon_caption_blip2 & icon_caption_florence is under MIT license. Please refer to the LICENSE file in the folder of each model: https://huggingface.co/microsoft/OmniParser.
|
| 66 |
-
|
| 67 |
-
## π Citation
|
| 68 |
-
Our technical report can be found [here](https://arxiv.org/abs/2408.00203).
|
| 69 |
-
If you find our work useful, please consider citing our work:
|
| 70 |
-
```
|
| 71 |
-
@misc{lu2024omniparserpurevisionbased,
|
| 72 |
-
title={OmniParser for Pure Vision Based GUI Agent},
|
| 73 |
-
author={Yadong Lu and Jianwei Yang and Yelong Shen and Ahmed Awadallah},
|
| 74 |
-
year={2024},
|
| 75 |
-
eprint={2408.00203},
|
| 76 |
-
archivePrefix={arXiv},
|
| 77 |
-
primaryClass={cs.CV},
|
| 78 |
-
url={https://arxiv.org/abs/2408.00203},
|
| 79 |
-
}
|
| 80 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: OmniParser v2 Demo
|
| 3 |
+
emoji: πβ¨
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.29.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|