-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UserWarning: Failed to load custom C++ ops. Running on CPU mode Only! #152
Comments
1. Create and activate a new environmentconda create -n sta_env python=3.10 2. Clone the repositorygit clone https://github.com/z-x-yang/Segment-and-Track-Anything.git 3. Install PyTorch with CUDA 11.8pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 4. Install the sam packagecd sam 5. Install GroundingDINOpip install -e git+https://github.com/IDEA-Research/GroundingDINO.git@main#egg=GroundingDINO 6. Install required packagespip install numpy opencv-python pycocotools matplotlib scikit-image 7. Install compatible version of Pillow and supervisionpip install Pillow==9.5.0 8. Install additional packagespip install gradio==3.39.0 gdown ffmpeg==1.4 9. Clone and set up Pytorch-Correlation-extensiongit clone https://github.com/ClementPinard/Pytorch-Correlation-extension.git 10. Create ckpt directory and download model filesmkdir ckpt Download sam_vit_b_01ec64.pth, R50_DeAOTL_PRE_YTB_DAV.pth, groundingdino_swint_ogc.pthcd .. 11. Run the applicationpython 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 here's how to update gcc
|
/home/user/repos/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/ms_deform_attn.py:31: UserWarning: Failed to load custom C++ ops. Running on CPU mode Only!
The text was updated successfully, but these errors were encountered: