赞
踩
需求: python>=3.8, as well as pytorch>=1.7 and torchvision>=0.8
安装完后,按照官网Grounded-Segment-Anything说明安装相应的包 .
依次安装
Install Segment Anything:
python -m pip install -e segment_anything
Install Grounding DINO:
python -m pip install -e GroundingDINO
Install diffusers:
pip install --upgrade diffusers[torch]
Install osx:
git submodule update --init --recursive
cd grounded-sam-osx && bash install.sh
Install osx:
git submodule update --init --recursive
cd Tag2Text && pip install -r requirements.txt
然后安装
pip install opencv-python pycocotools matplotlib onnxruntime onnx ipykernel
通过conda命令解决了问题:
conda install -c huggingface transformers
(MaxRetryError("HTTPSConnectionPool(host=‘huggingface.co’, port=443): Max retries exceeded with url: /bert-base-uncased/resolve/main/tokenizer_config.json
解决办法:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。