Skip to content
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

FoodSAM Colab GPU Version problems mmcv-full #4

Open
JonaspythonG opened this issue Nov 6, 2023 · 4 comments
Open

FoodSAM Colab GPU Version problems mmcv-full #4

JonaspythonG opened this issue Nov 6, 2023 · 4 comments

Comments

@JonaspythonG
Copy link

Hello,
I am trying to use FoodSAM in Google Colab but I am encountering a problem. As soon as I attempt to install mmcv-full and allocate GPU resources to the notebook, I receive an error named "building wheels". I did some research and found out that if I install using !pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116, I can at least install mmcv versions 2.0.0 and 2.1.0. However, unfortunately, these versions do not have the Dictation function... Does anyone know a solution?

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for mmcv-full (setup.py) ... error
ERROR: Failed building wheel for mmcv-full
Running setup.py clean for mmcv-full
Failed to build mmcv-full
ERROR: Could not build wheels for mmcv-full, which is required to install pyproject.toml-based project

ImportError: cannot import name 'DictAction' from 'mmcv.utils'

@JonaspythonG JonaspythonG changed the title FoodSAM Colab GPU Version problems FoodSAM Colab GPU Version problems mmcv-full Nov 6, 2023
@Queeny23333
Copy link

The same Q..

@bastianMO
Copy link

bastianMO commented Apr 26, 2024

I solved this by downgrading torch version to 1.8.1+cu111 torchvision == 0.9.1+cu111, and use CUDA 11.1

@eichi7
Copy link

eichi7 commented Apr 28, 2024

@bastianMO can you share with us what you have done please

@sukhbat112
Copy link

I have the same error, has anyone resolved this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants