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

Google Colab environment #61

Closed
zeejja opened this issue Jun 12, 2024 · 12 comments
Closed

Google Colab environment #61

zeejja opened this issue Jun 12, 2024 · 12 comments

Comments

@zeejja
Copy link

zeejja commented Jun 12, 2024

I am trying to set up the environment in Google Colab, but it is not working. Has anyone managed to do it successfully?

@oneformer3d-contributor
Copy link
Collaborator

I believe the problem is with MinkowskiEngine installation?

@zeejja
Copy link
Author

zeejja commented Jun 13, 2024

I believe the problem is with MinkowskiEngine installation?

yes the proble is with MinkowskiEngine and
!mim install "mmcv>=2.0.0rc4,<2.1.0"
!mim install "mmdet>=3.0.0,<3.1.0"

@oneformer3d-contributor
Copy link
Collaborator

Can you share some tracebacks of errors?

@zeejja
Copy link
Author

zeejja commented Jun 13, 2024

Can you share some tracebacks of errors?

when i try to execute : ''!mim install "mmcv>=2.0.0rc4,<2.1.0"''

this is the error :

Looking in links: https://download.openmmlab.com/mmcv/dist/cu121/torch2.3.0/index.html
Collecting mmcv<2.1.0,>=2.0.0rc4
Downloading mmcv-2.0.1.tar.gz (469 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 469.5/469.5 kB 7.7 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in /usr/local/lib/python3.10/dist-packages (from mmcv<2.1.0,>=2.0.0rc4) (2.4.0)
Requirement already satisfied: mmengine>=0.3.0 in /usr/local/lib/python3.10/dist-packages (from mmcv<2.1.0,>=2.0.0rc4) (0.10.4)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from mmcv<2.1.0,>=2.0.0rc4) (1.25.2)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from mmcv<2.1.0,>=2.0.0rc4) (24.1)
Requirement already satisfied: Pillow in /usr/local/lib/python3.10/dist-packages (from mmcv<2.1.0,>=2.0.0rc4) (9.4.0)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from mmcv<2.1.0,>=2.0.0rc4) (6.0.1)
Requirement already satisfied: yapf in /usr/local/lib/python3.10/dist-packages (from mmcv<2.1.0,>=2.0.0rc4) (0.40.2)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (3.7.1)
Requirement already satisfied: rich in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (13.4.2)
Requirement already satisfied: termcolor in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (2.4.0)
Requirement already satisfied: opencv-python>=3 in /usr/local/lib/python3.10/dist-packages (from mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (4.8.0.76)
Requirement already satisfied: importlib-metadata>=6.6.0 in /usr/local/lib/python3.10/dist-packages (from yapf->mmcv<2.1.0,>=2.0.0rc4) (7.1.0)
Requirement already satisfied: platformdirs>=3.5.1 in /usr/local/lib/python3.10/dist-packages (from yapf->mmcv<2.1.0,>=2.0.0rc4) (4.2.2)
Requirement already satisfied: tomli>=2.0.1 in /usr/local/lib/python3.10/dist-packages (from yapf->mmcv<2.1.0,>=2.0.0rc4) (2.0.1)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.10/dist-packages (from importlib-metadata>=6.6.0->yapf->mmcv<2.1.0,>=2.0.0rc4) (3.19.2)
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (1.2.1)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (4.53.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (2.8.2)
Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.10/dist-packages (from rich->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.10/dist-packages (from rich->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (2.16.1)
Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.10/dist-packages (from markdown-it-py>=2.2.0->rich->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (0.1.2)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.7->matplotlib->mmengine>=0.3.0->mmcv<2.1.0,>=2.0.0rc4) (1.16.0)
Building wheels for collected packages: mmcv
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 (setup.py) ... error
ERROR: Failed building wheel for mmcv
Running setup.py clean for mmcv
Failed to build mmcv
ERROR: Could not build wheels for mmcv, which is required to install pyproject.toml-based projects

@Lizhinwafu
Copy link

I use docker, also failed with MinkowskiEngine.

@oneformer3d-contributor
Copy link
Collaborator

cu121/torch2.3.0/index.html

torch2.3 may be too good for this repo. and cuda12 also may need some fixes in MinkowskiEngine

@oneformer3d-contributor
Copy link
Collaborator

I use docker, also failed with MinkowskiEngine.

Please also provide the full log of error.

@Lizhinwafu
Copy link

image

@zeejja
Copy link
Author

zeejja commented Jun 13, 2024

cu121/torch2.3.0/index.html

torch2.3 est peut-être trop bon pour ce dépôt. et cuda12 peuvent également avoir besoin de quelques correctifs dans MinkowskiEngine

cu121/torch2.3.0/index.html

torch2.3 est peut-être trop bon pour ce dépôt. et cuda12 peuvent également avoir besoin de quelques correctifs dans MinkowskiEngine

How can I fix it, please? I am forced to work with Google Colab Pro because I don't have a local machine.

@oneformer3d-contributor
Copy link
Collaborator

You can downgrade torch to the version in our Dockerfile. And if you can not downgrade cuda, please use this fix NVIDIA/MinkowskiEngine#567.

@zeejja
Copy link
Author

zeejja commented Jun 13, 2024

You can downgrade torch to the version in our Dockerfile. And if you can not downgrade cuda, please use this fix NVIDIA/MinkowskiEngine#567.

for google colab ?

@oneformer3d-contributor
Copy link
Collaborator

for google colab ?

yes, i think, it may work. just replace commit id from the dockerfile to the commit from this pr

@filaPro filaPro closed this as completed Aug 28, 2024
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

4 participants