创建虚拟环境
conda create -n seem python=3.8
conda activate seem
安装相关依赖:(不按照的话会报错)
- sudo apt-get install openmpi-bin libopenmpi-dev
- conda install gcc_linux-64
- pip install mpi4py
导入环境
export PYTHONPATH=$(pwd):$PYTHONPATH
下载seem代码:
git clone git@github.com:UX-Decoder/Segment-Everything-Everywhere-All-At-Once.git
修改下载模型路径:
进入Segment-Everything-Everywhere-All-At-Once打开demo/seem/app.py 找到hugging face地址替换为
http://hf-mirror.com
安装:
下载文件夹: 在Segment-Everything-Everywhere-All-At-Once路径下新建openai/clip-vit-base-patch32 文件夹,将huggingface-models-openai-clip-vit-base-patch32安装包下载_开源镜像站-阿里云的文件下载下来放入其中。运行: sh assets/scripts/run_demo.sh
浏览器打开对于地址,进行测试