1. 环境准备
-
操作系统:支持 Windows/macOS/Linux。
-
Python 版本:确保已安装 Python 3.7 或更高版本。
-
包管理工具:使用
pip(Python 自带)。
安装环境:
conda create -n "omni" python==3.12
conda activate omni
pip install -r requirements.txt
确保您已将 V2 权重下载到 weights 文件夹中(确保标题权重文件夹名为 icon_caption_florence)。如果没有,请使用以下命令下载它们:
rm -rf weights/icon_detect weights/icon_caption weights/icon_caption_florence
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
mv weights/icon_caption weights/icon_capti


最低0.47元/天 解锁文章
6358





