z-x-yang / Segment-and-Track-Anything

An open-source project dedicated to tracking and segmenting any objects in videos, either automatically or interactively. The primary algorithms utilized include the Segment Anything Model (SAM) for key-frame segmentation and Associating Objects with Transformers (AOT) for efficient tracking and propagation purposes.
GNU Affero General Public License v3.0
2.83k stars 340 forks source link

环境太难配了,最好加一个requirements.txt #98

Open realcarlos opened 1 year ago

realcarlos commented 1 year ago

版本冲突解决了一天都没成功

能否给一下torch, torchvision, gradio ,transformers, fschat 的版本号?

Wei-Wu233 commented 12 months ago

哈哈哈,我也是,两天了,Pytorch Correlation这里的安装一直报错

youkangze commented 12 months ago

哈哈哈,我也是,两天了,Pytorch Correlation这里的安装一直报错

请问您gradio使用的是哪个版本?

yamy-cheng commented 12 months ago

版本冲突解决了一天都没成功

能否给一下torch, torchvision, gradio ,transformers, fschat 的版本号?

Hi, to run SAM-Track, you can install the following dependencies: torch==1.10.1+cu111, torchvision==0.11.2+cu111, and gradio==3.39.0.

Spr-Peach commented 11 months ago

我用的cuda118,所以我配的是pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118 其他req可以试着运行python app.py,看到报错找不到什么model就pip install什么,torchaudio和torchvision安装前先卸载一遍torchaudio、torchvision和torch,然后运行pip cache purge清下缓存再装 另外报错缺少model不想走弯路的话可以去隔壁halfzm/ProPainter-Webui项目下载整合包:百度网盘,解压后每次python app.py报错缺什么模型就在整合包里搜,一般都在env目录下,安装的时候加上版本号pip install “mame”==“version”。

Spr-Peach commented 11 months ago

torch的安装可以在https://pytorch.org/get-started/previous-versions/页面自己找

Spr-Peach commented 11 months ago

哈哈哈,我也是,两天了,Pytorch Correlation这里的安装一直报错

请问您gradio使用的是哪个版本?

https://github.com/z-x-yang/Segment-and-Track-Anything/blob/main/script/install.sh页面有很明确的gradio版本

# Install SAM
cd sam; pip install -e .
cd -

# Install Grounding-Dino
pip install -e git+https://github.com/IDEA-Research/GroundingDINO.git@main#egg=GroundingDINO

# Install other lib
pip install numpy opencv-python pycocotools matplotlib Pillow==9.2.0 scikit-image
pip install gradio==3.39.0 zip gdown ffmpeg==1.4

# Install Pytorch Correlation
git clone https://github.com/ClementPinard/Pytorch-Correlation-extension.git
cd Pytorch-Correlation-extension
python setup.py install
cd -
WIFIwifi8966 commented 11 months ago

请问我有安装过SAM,但SAM的安装使用python =3.9 是冲突的,为什么SAM Track可以使用SAM运行在3.9的版本下呀