做一个内涵丰富、身体健康、思想开放、有毅力的能力者

Windows部署OmniParse

omniparse在windowns上不支持,但是我们可以用win上的wsl安装linux来使用。
我这里安装的是ubuntu24.02

git地址 https://github.com/adithya-s-k/omniparse
  1. 获取安装文件

    git clone https://github.com/adithya-s-k/omniparse
    cd omniparse
  2. 创建虚拟环境

    conda create -n omniparse-venv python=3.10
    conda activate omniparse-venv
  3. 安装依赖 (国内个人推荐清华源)

    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
  4. 下载模型

    python download.py --documents --media --web
  5. 测试状态

    python server.py --host 0.0.0.0 --port 8000 --documents --media --web

添加新评论