sunhan1997 / IndusGrasp

This is the official implementation of our paper: "A Novel Robotic Grasp Detection Framework Using Low-Cost RGB-D Camera for Industrial Bin Picking."
21 stars 2 forks source link

Complete pip/conda list on desktop and laptop versions? #7

Open pieris98 opened 3 weeks ago

pieris98 commented 3 weeks ago

Hey again @sunhan1997 I'm still trying to test the code and it doesn't work because of incompatibilities with various libraries.

This is what I've installed so far because of errors I got trying to run python test.py:

python==3.8.19 (still have to try 3.7 for cython 0.29 to work without building wheel) cython==0.29 (only way to be able to install cyglfw3 for dataset preparation/rendering) cyglfw3==3.1.2.0 open3d (I didn't specify version, which one is used in your code??) graspnetAPI (I didn't specify version, which one is used in your code??)

numpy: downgraded from 1.24.4 to 1.20.3 (used 1.20.3 because it was the ONLY available version of numpy that's compatible with pandas, otherwise pip complains in many versions of pandas even when using the older pandas==1.5.3 that it needs numpy>=1.20.3) ----->This leads me to my current ERROR caused in numpy typing now

AttributeError: module 'numpy.typing' has no attribute 'NDArray'

Traceback:

Traceback (most recent call last):
  File "test.py", line 289, in <module>
    from dataset import gen_multi_feature_fusion_map
  File "/home/cherry/dev/IndusGrasp/dataset.py", line 10, in <module>
    from torchvision import transforms
  File "/home/cherry/miniconda/envs/indus/lib/python3.8/site-packages/torchvision/__init__.py", line 4, in <module>
    from torchvision import datasets
  File "/home/cherry/miniconda/envs/indus/lib/python3.8/site-packages/torchvision/datasets/__init__.py", line 1, in <module>
    from .lsun import LSUN, LSUNClass
  File "/home/cherry/miniconda/envs/indus/lib/python3.8/site-packages/torchvision/datasets/lsun.py", line 2, in <module>
    from PIL import Image
  File "/home/cherry/miniconda/envs/indus/lib/python3.8/site-packages/PIL/Image.py", line 68, in <module>
    from ._typing import StrOrBytesPath, TypeGuard
  File "/home/cherry/miniconda/envs/indus/lib/python3.8/site-packages/PIL/_typing.py", line 10, in <module>
    NumpyArray = npt.NDArray[Any]
AttributeError: module 'numpy.typing' has no attribute 'NDArray'

This is my current pip list output:

Package                   Version
------------------------- -----------
addict                    2.4.0
asttokens                 2.4.1
attrs                     24.2.0
autolab-core              1.1.1
autolab-perception        1.0.0
backcall                  0.2.0
blinker                   1.8.2
certifi                   2024.8.30
charset-normalizer        3.3.2
click                     8.1.7
colorlog                  6.8.2
comm                      0.2.2
ConfigArgParse            1.7
contourpy                 1.1.1
cvxopt                    1.3.2
cycler                    0.12.1
cyglfw3                   3.1.0.2
Cython                    0.29
dash                      2.18.1
dash-core-components      2.0.0
dash-html-components      2.0.0
dash-table                5.0.0
decorator                 5.1.1
dill                      0.3.8
executing                 2.1.0
fastjsonschema            2.20.0
ffmpeg-python             0.2.0
Flask                     3.0.3
fonttools                 4.53.1
future                    1.0.0
grasp_nms                 1.0.2
graspnetAPI               1.2.11
h5py                      3.11.0
idna                      3.8
imageio                   2.35.1
imgaug                    0.4.0
importlib_metadata        8.5.0
importlib_resources       6.4.5
ipython                   8.12.3
ipywidgets                8.1.5
itsdangerous              2.2.0
jedi                      0.19.1
Jinja2                    3.1.4
joblib                    1.4.2
jsonschema                4.23.0
jsonschema-specifications 2023.12.1
jupyter_core              5.7.2
jupyterlab_widgets        3.0.13
kiwisolver                1.4.7
lazy_loader               0.4
MarkupSafe                2.1.5
matplotlib                3.7.5
matplotlib-inline         0.1.7
multiprocess              0.70.16
nbformat                  5.10.4
nest-asyncio              1.6.0
networkx                  3.1
numpy                     1.20.3
open3d                    0.18.0
opencv-contrib-python     4.1.2.30
opencv-python             4.1.2.30
packaging                 24.1
pandas                    2.0.3
parso                     0.8.4
pexpect                   4.9.0
pickleshare               0.7.5
pillow                    10.4.0
pip                       24.2
pkgutil_resolve_name      1.3.10
platformdirs              4.3.2
plotly                    5.24.1
progressbar               2.5
prompt_toolkit            3.0.47
ptyprocess                0.7.0
pure_eval                 0.2.3
pyassimp                  3.3
Pygments                  2.18.0
PyOpenGL                  3.1.5
PyOpenGL-accelerate       3.1.5
pyparsing                 3.1.4
pypng                     0.0.21
pyquaternion              0.9.9
pyserial                  3.5
python-dateutil           2.9.0.post0
pytz                      2024.2
PyWavefront               1.3.3
PyWavelets                1.4.1
PyYAML                    6.0.2
referencing               0.35.1
requests                  2.32.3
retrying                  1.3.4
rpds-py                   0.20.0
ruamel.yaml               0.18.6
ruamel.yaml.clib          0.2.8
scikit-image              0.19.3
scikit-learn              1.3.2
scipy                     1.10.1
setproctitle              1.3.3
setuptools                73.0.1
shapely                   2.0.6
six                       1.16.0
stack-data                0.6.3
tenacity                  9.0.0
threadpoolctl             3.5.0
tifffile                  2023.7.10
torch                     1.5.0
torchvision               0.6.0
tqdm                      4.66.5
traitlets                 5.14.3
transforms3d              0.3.1
trimesh                   4.4.9
typing_extensions         4.12.2
tzdata                    2024.1
urllib3                   2.2.3
wcwidth                   0.2.13
Werkzeug                  3.0.4
wheel                     0.44.0
widgetsnbextension        4.0.13
zipp                      3.20.1

And this is my conda list (I used conda):

# packages in environment at /home/cherry/miniconda/envs/indus:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
addict                    2.4.0                    pypi_0    pypi
asttokens                 2.4.1                    pypi_0    pypi
attrs                     24.2.0                   pypi_0    pypi
autolab-core              1.1.1                    pypi_0    pypi
autolab-perception        1.0.0                    pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
blinker                   1.8.2                    pypi_0    pypi
bzip2                     1.0.8                h4bc722e_7    conda-forge
ca-certificates           2024.8.30            hbcca054_0    conda-forge
certifi                   2024.8.30                pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
click                     8.1.7                    pypi_0    pypi
colorlog                  6.8.2                    pypi_0    pypi
comm                      0.2.2                    pypi_0    pypi
configargparse            1.7                      pypi_0    pypi
contourpy                 1.1.1                    pypi_0    pypi
cvxopt                    1.3.2                    pypi_0    pypi
cycler                    0.12.1                   pypi_0    pypi
cyglfw3                   3.1.0.2                  pypi_0    pypi
cython                    0.29                     pypi_0    pypi
dash                      2.18.1                   pypi_0    pypi
dash-core-components      2.0.0                    pypi_0    pypi
dash-html-components      2.0.0                    pypi_0    pypi
dash-table                5.0.0                    pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
dill                      0.3.8                    pypi_0    pypi
executing                 2.1.0                    pypi_0    pypi
fastjsonschema            2.20.0                   pypi_0    pypi
ffmpeg-python             0.2.0                    pypi_0    pypi
flask                     3.0.3                    pypi_0    pypi
fonttools                 4.53.1                   pypi_0    pypi
future                    1.0.0                    pypi_0    pypi
glfw3                     3.2.1                         0    https://anaconda.org/menpo/glfw3/3.2.1/download
grasp-nms                 1.0.2                    pypi_0    pypi
graspnetapi               1.2.11                   pypi_0    pypi
h5py                      3.11.0                   pypi_0    pypi
idna                      3.8                      pypi_0    pypi
imageio                   2.35.1                   pypi_0    pypi
imgaug                    0.4.0                    pypi_0    pypi
importlib-metadata        8.5.0                    pypi_0    pypi
importlib-resources       6.4.5                    pypi_0    pypi
ipython                   8.12.3                   pypi_0    pypi
ipywidgets                8.1.5                    pypi_0    pypi
itsdangerous              2.2.0                    pypi_0    pypi
jedi                      0.19.1                   pypi_0    pypi
jinja2                    3.1.4                    pypi_0    pypi
joblib                    1.4.2                    pypi_0    pypi
jsonschema                4.23.0                   pypi_0    pypi
jsonschema-specifications 2023.12.1                pypi_0    pypi
jupyter-core              5.7.2                    pypi_0    pypi
jupyterlab-widgets        3.0.13                   pypi_0    pypi
kiwisolver                1.4.7                    pypi_0    pypi
lazy-loader               0.4                      pypi_0    pypi
ld_impl_linux-64          2.40                 hf3520f5_7    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc                    14.1.0               h77fa898_1    conda-forge
libgcc-ng                 14.1.0               h69a702a_1    conda-forge
libgomp                   14.1.0               h77fa898_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libsqlite                 3.46.1               hadc24fc_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libzlib                   1.3.1                h4ab18f5_1    conda-forge
markupsafe                2.1.5                    pypi_0    pypi
matplotlib                3.7.5                    pypi_0    pypi
matplotlib-inline         0.1.7                    pypi_0    pypi
multiprocess              0.70.16                  pypi_0    pypi
nbformat                  5.10.4                   pypi_0    pypi
ncurses                   6.5                  he02047a_1    conda-forge
nest-asyncio              1.6.0                    pypi_0    pypi
networkx                  3.1                      pypi_0    pypi
numpy                     1.20.3                   pypi_0    pypi
open3d                    0.18.0                   pypi_0    pypi
opencv-contrib-python     4.1.2.30                 pypi_0    pypi
opencv-python             4.1.2.30                 pypi_0    pypi
openssl                   3.3.2                hb9d3cd8_0    conda-forge
packaging                 24.1                     pypi_0    pypi
pandas                    2.0.3                    pypi_0    pypi
parso                     0.8.4                    pypi_0    pypi
pexpect                   4.9.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    10.4.0                   pypi_0    pypi
pip                       24.2               pyh8b19718_1    conda-forge
pkgutil-resolve-name      1.3.10                   pypi_0    pypi
platformdirs              4.3.2                    pypi_0    pypi
plotly                    5.24.1                   pypi_0    pypi
progressbar               2.5                      pypi_0    pypi
prompt-toolkit            3.0.47                   pypi_0    pypi
ptyprocess                0.7.0                    pypi_0    pypi
pure-eval                 0.2.3                    pypi_0    pypi
pyassimp                  3.3                      pypi_0    pypi
pygments                  2.18.0                   pypi_0    pypi
pyopengl                  3.1.5                    pypi_0    pypi
pyopengl-accelerate       3.1.5                    pypi_0    pypi
pyparsing                 3.1.4                    pypi_0    pypi
pypng                     0.0.21                   pypi_0    pypi
pyquaternion              0.9.9                    pypi_0    pypi
pyserial                  3.5                      pypi_0    pypi
python                    3.8.19          hd12c33a_0_cpython    conda-forge
python-dateutil           2.9.0.post0              pypi_0    pypi
pytz                      2024.2                   pypi_0    pypi
pywavefront               1.3.3                    pypi_0    pypi
pywavelets                1.4.1                    pypi_0    pypi
pyyaml                    6.0.2                    pypi_0    pypi
readline                  8.2                  h8228510_1    conda-forge
referencing               0.35.1                   pypi_0    pypi
requests                  2.32.3                   pypi_0    pypi
retrying                  1.3.4                    pypi_0    pypi
rpds-py                   0.20.0                   pypi_0    pypi
ruamel-yaml               0.18.6                   pypi_0    pypi
ruamel-yaml-clib          0.2.8                    pypi_0    pypi
scikit-image              0.19.3                   pypi_0    pypi
scikit-learn              1.3.2                    pypi_0    pypi
scipy                     1.10.1                   pypi_0    pypi
setproctitle              1.3.3                    pypi_0    pypi
setuptools                73.0.1             pyhd8ed1ab_0    conda-forge
shapely                   2.0.6                    pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
stack-data                0.6.3                    pypi_0    pypi
tenacity                  9.0.0                    pypi_0    pypi
threadpoolctl             3.5.0                    pypi_0    pypi
tifffile                  2023.7.10                pypi_0    pypi
tk                        8.6.13          noxft_h4845f30_101    conda-forge
torch                     1.5.0                    pypi_0    pypi
torchvision               0.6.0                    pypi_0    pypi
tqdm                      4.66.5                   pypi_0    pypi
traitlets                 5.14.3                   pypi_0    pypi
transforms3d              0.3.1                    pypi_0    pypi
trimesh                   4.4.9                    pypi_0    pypi
typing-extensions         4.12.2                   pypi_0    pypi
tzdata                    2024.1                   pypi_0    pypi
urllib3                   2.2.3                    pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
werkzeug                  3.0.4                    pypi_0    pypi
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.13                   pypi_0    pypi
xz                        5.2.6                h166bdaf_0    conda-forge
zipp                      3.20.1                   pypi_0    pypi

Can you please provide your pip list/conda list of your laptop and desktop so that I can try a working environment? Anyone else who got the simple python test to work please feel free to share your environment.

Thanks again for all your help.

sunhan1997 commented 3 weeks ago

I'm sorry, I did this work with GTX 1650. Therefore, it may not be able to render on RTX 40/30.

name: yolo channels:

pieris98 commented 3 weeks ago

Hey @sunhan1997 , For the custom packages (e.g. ros dependencies) did you use a meta-package e.g. ros-release? I'm going through the dependencies pip list one-by-one and it's difficult to find all these package versions on github.

sunhan1997 commented 3 weeks ago

About the ros, you should install ros in your ubuntu system. As for the conda env, you can use pip install rospkg. If you just run this code, you can ignore the ros package. If you want to run this code with robot, you should install ros firstly. In addition, I upload a new version which use the pyrender(from bop_toolkit)replacing the opengl. And the new version code maybe more suitable, I have run it in my RTX 4090.

pieris98 commented 3 weeks ago

Hey again @sunhan1997 , I was able to install all packages in the new commit version you uploaded. However, now trying to run test_without_detection.py the error is that PyTorch version doesn't support the Ampere compute capability sm86 (my card is RTX3060).

You said you ran this on your RTX4090 so maybe you forgot to update requirements.txt? Right now if I install all required packages I have torch==1.10.1.

Also I had to manually resolve some incompatibilities of packages with easy_dxnet repo, which you recommend to download for faster runtime.

If you could provide any guidance or upload an up-to-date requirements.txt file (from conda env export/pip freeze) that would be very helpful.

Appreciate all your help on my issues!

sunhan1997 commented 3 weeks ago

hello, therequirements.txt is no problem, and the pytorch is 1.10.1. You can tryconda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=11.3 -c pytorch -c conda-forge to install the pytorch. In addition, the easy_dxnet is not used in this project. I mean, in future work, the easy_dxnet can be used to sample grasps for better performance.