filaPro / oneformer3d

[CVPR2024] OneFormer3D: One Transformer for Unified Point Cloud Segmentation
Other
348 stars 32 forks source link

gilbc version error on running in a container #75

Closed D3xter1922 closed 1 week ago

D3xter1922 commented 2 months ago

I am trying to run an image from this dockerfile, by first creating a docker image from it and then creating an apptainer image from the docker image.

here is the model config file Inside the container when I try to run cd /workspace/mmdetection3d && python tools/train.py <config>, it gives an error:

Traceback (most recent call last):
  File "/workspace/mmdetection3d/tools/train.py", line 10, in <module>
    from mmengine.runner import Runner
  File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/__init__.py", line 2, in <module>
    from ._flexible_runner import FlexibleRunner
  File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/_flexible_runner.py", line 14, in <module>
    from mmengine._strategy import BaseStrategy
  File "/opt/conda/lib/python3.10/site-packages/mmengine/_strategy/__init__.py", line 3, in <module>
    from mmengine.utils.dl_utils import TORCH_VERSION
  File "/opt/conda/lib/python3.10/site-packages/mmengine/utils/dl_utils/__init__.py", line 3, in <module>
    from .collect_env import collect_env
  File "/opt/conda/lib/python3.10/site-packages/mmengine/utils/dl_utils/collect_env.py", line 8, in <module>
    import cv2
  File "/opt/conda/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/opt/conda/lib/python3.10/site-packages/cv2/__init__.py", line 153, in bootstrap
    native_module = importlib.import_module("cv2")
  File "/opt/conda/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /.singularity.d/libs/libGLX.so.0)  

This might be because the base image is pytorch 1.13.1 which is a bit old, and using cv2 might require newer versions of glibc.

filaPro commented 2 months ago

It is extremely strange as i just built the docker image with this dockerfile and everything is fine.

By the way, why your directory is /workspace/mmdetection3d and not /workspace/oneformer3d?