-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CUDA dependencies problem #2
Comments
Hi Fabio! Thanks for your issue report. I haven't tested this project with Docker before. We will get back to you! On the first look, it seems like this may be an issue with grounded-sam installation, right? Have you checked their github issue for problems similar to this, or do you think this is caused by some code/install instruction of this project specifically? (Although to be honest I would find it strange since we didn't modify much. Could this be due to some modification in the fork made by @Kairui-SHI ?) Kim, @KimHe-RGB could you take a look at this? Since you mentioned that you wanted to test the installation independently once. |
Thank you so much for the support. |
Hi Fabio! Sorry for my inadequate knowledge regarding docker. Could you tell me the exact command you used to pull the specific version of cuda image you are using? Also, now that I get to look at this error message more carefully, it seems to indicate the cuda runtime ( |
Hi, I tried again your tutorial at this link: https://github.com/ai4ce/FusionSense/blob/main/instructions/grounded_sam_2.md To answer your first question I was using before a base ubuntu20.04 image to start the process, without cuda or anything, since the runtimes are installed in conda. `2 errors detected in the compilation of "/workspaces/FusionSense/Grounded-SAM2-for-masking/grounding_dino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu".
note: This error originates from a subprocess, and is likely not a problem with pip.` |
Hi! Could you run Also, not blaming you, but I find this error message really lacking in terms of information, lol. It seems to indicate that the compilation of deformed attention is having troubles, but nothing else. Grounded-Sam's installation guide does say something about this in this section. Could you try to install Grounded-Sam according to their instructions? |
Hi! |
Great! Glad to hear that! |
Hi, i would like to start with some congratulations for the great project.
I am trying to test it out with a docker container, this is the base image that i use:
`
Start from an official CUDA base image
FROM ubuntu:20.04
Set up environment variables for non-interactive apt-get and Conda
ENV DEBIAN_FRONTEND=noninteractive
Update and install dependencies
RUN apt-get update && apt-get install -y
wget
curl
git
build-essential
libgl1-mesa-glx
libglib2.0-0
ninja-build
cmake
python3-dev
&& apt-get clean && rm -rf /var/lib/apt/lists/*
Install Miniconda
ENV CONDA_DIR /opt/conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh &&
bash /tmp/miniconda.sh -b -p $CONDA_DIR &&
rm /tmp/miniconda.sh &&
$CONDA_DIR/bin/conda clean -afy
Add Conda to PATH
ENV PATH=$CONDA_DIR/bin:$PATH
Initialize Conda for bash
RUN echo "source $CONDA_DIR/etc/profile.d/conda.sh" >> ~/.bashrc
Default command
CMD ["/bin/bash"]`
The problem is that when i try to install gorunded sam, i have the following error on this command:
pip install --no-build-isolation -e grounding_dino
Error:
`(G-SAM-2) root@7b07c6566628:/workspaces/FusionSense/Grounded-SAM2-for-masking# pip install --no-build-isolation -e grounding_dino
Obtaining file:///workspaces/FusionSense/Grounded-SAM2-for-masking/grounding_dino
Preparing metadata (setup.py) ... done
Installing collected packages: groundingdino
DEPRECATION: Legacy editable install of groundingdino==0.1.0 from file:///workspaces/FusionSense/Grounded-SAM2-for-masking/grounding_dino (setup.py develop) is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at pypa/pip#11457
Running setup.py develop for groundingdino
error: subprocess-exited-with-error
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
Building wheel groundingdino-0.1.0
Compiling with CUDA
running develop
/opt/conda/envs/G-SAM-2/lib/python3.10/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
note: This error originates from a subprocess, and is likely not a problem with pip.`
The text was updated successfully, but these errors were encountered: