omniparse在windowns上不支持,但是我们可以用win上的wsl安装linux来使用。
我这里安装的是ubuntu24.02
git地址 https://github.com/adithya-s-k/omniparse
获取安装文件
git clone https://github.com/adithya-s-k/omniparse cd omniparse
创建虚拟环境
conda create -n omniparse-venv python=3.10 conda activate omniparse-venv
安装依赖 (国内个人推荐清华源)
pip install torch -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple pip install -e . -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
下载模型
python download.py --documents --media --web
测试状态
python server.py --host 0.0.0.0 --port 8000 --documents --media --web