Comments (1)
1. Create and activate a new environment
conda create -n sta_env python=3.10
conda activate sta_env
2. Clone the repository
git clone https://github.com/z-x-yang/Segment-and-Track-Anything.git
cd Segment-and-Track-Anything
3. Install PyTorch with CUDA 11.8
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
4. Install the sam package
cd sam
pip install -e .
cd ..
5. Install GroundingDINO
pip install -e git+https://github.com/IDEA-Research/GroundingDINO.git@main#egg=GroundingDINO
6. Install required packages
pip install numpy opencv-python pycocotools matplotlib scikit-image
7. Install compatible version of Pillow and supervision
pip install Pillow==9.5.0
pip install supervision
8. Install additional packages
pip install gradio==3.39.0 gdown ffmpeg==1.4
9. Clone and set up Pytorch-Correlation-extension
git clone https://github.com/ClementPinard/Pytorch-Correlation-extension.git
cd Pytorch-Correlation-extension
pip install -e .
cd ..
10. Create ckpt directory and download model files
mkdir ckpt
cd ckpt
Download sam_vit_b_01ec64.pth, R50_DeAOTL_PRE_YTB_DAV.pth, groundingdino_swint_ogc.pth
cd ..
11. Run the application
python app.py
Here's how I solve, you also need to check your gcc version and cuda (use "which nvcc"), if there's nothing, you need to download it
(wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
)
(sh cuda_11.8.0_520.61.05_linux.run --silent --toolkit --override --installpath=$HOME/cuda
)
(export CUDA_HOME=$HOME/cuda
export PATH=$CUDA_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
)
(echo 'export CUDA_HOME=$HOME/cuda' >> ~/.bashrc
echo 'export PATH=$CUDA_HOME/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc
)
here's how to update gcc
- wget https://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz
- tar -xzf gcc-9.3.0.tar.gz
- cd gcc-9.3.0
- ./contrib/download_prerequisites
- mkdir ../gcc-build
cd ../gcc-build - ../gcc-9.3.0/configure --prefix=$HOME/gcc-9.3.0 --disable-multilib
- make -j$(nproc)
- make install
- export PATH=$HOME/gcc-9.3.0/bin:$PATH
export LD_LIBRARY_PATH=$HOME/gcc-9.3.0/lib64:$LD_LIBRARY_PATH - echo 'export PATH=$HOME/gcc-9.3.0/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=$HOME/gcc-9.3.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc
from segment-and-track-anything.
Related Issues (20)
- How to obtain the pixel coordinates of masks in the image? HOT 1
- DeAOTB_PRE_YTB_DAV在哪里有下载 HOT 1
- 第100張影像後都會變全影像切割 HOT 3
- FPS problem?
- Tuning DeAOT to forget objects quickly? HOT 1
- latest installation notes win HOT 1
- How to train aot? Where is aot's train.py? HOT 1
- Error in demo_instseg.ipynb?
- FileNotFoundError: file "D:\Segment-and-Track-Anything-main\src\groundingdino\groundingdino\config\GroundingDINO_SwinT_OGC.py" does not exist.When i use Click-Tab ,I have this file but there is a error.I would be grateful if you could answer for me. HOT 1
- Potential error in find_new_objs
- OSError: We couldn't connect to 'https://huggingface.co' HOT 1
- 显卡要求什么配置What kind of graphics card can run this experiment? HOT 1
- how many pth files do the project need? only three ?
- How to select new objects/masks in intermediate frames with roll back functionality?
- File "/content/Segment-and-Track-Anything/app.py", line 29, in <module> from ast_master.prepare import ASTpredict ModuleNotFoundError: No module named 'ast_master HOT 3
- 视频跟踪,除了第一帧,masks都是黑的 HOT 3
- The confidence score is reduce when it have two text prompt
- 会有基于摄像头的实时demo吗
- can not find the package ast_master ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segment-and-track-anything.