Open dev2021-ctrl opened 3 years ago
I met the same issue.
I met the same issue.
Hi there,
Thank you for sharing your great work to us. I am appreciated. Currently, I am facing the exact same problem as this and another thread claimed. I checked out the folder librasterise.so should locate at, but the file is not in there.
My CUDA version is 10.0.130, CMake 3.10.3, CuDNN 7.6.5, GCC 4.8.5, tensorflow-gpu 1.13.1. After claiming several variables, CUDA_HOME. LD_LIBRARY_PATH, PATH and CMAKE_LIBRARY_PATH, as suggested in previous issues, I was able to successfully install DIRT repo (at least it appears so :/). Also, my operation system is Linux 10-108-80-111 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux.
''' Processing /home/fangshukai/dirt-master Requirement already satisfied: tensorflow-gpu>=1.6 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from dirt==0.3.0) (1.13.2) Requirement already satisfied: numpy in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from dirt==0.3.0) (1.16.0) Requirement already satisfied: protobuf>=3.6.1 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (3.17.3) Requirement already satisfied: gast>=0.2.0 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (0.5.2) Requirement already satisfied: tensorflow-estimator<1.14.0rc0,>=1.13.0 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (1.13.0) Requirement already satisfied: astor>=0.6.0 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (0.8.1) Requirement already satisfied: six>=1.10.0 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (1.16.0) Requirement already satisfied: wheel>=0.26 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (0.36.2) Requirement already satisfied: absl-py>=0.1.6 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (0.13.0) Requirement already satisfied: tensorboard<1.14.0,>=1.13.0 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (1.13.1) Requirement already satisfied: keras-preprocessing>=1.0.5 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (1.1.2) Requirement already satisfied: grpcio>=1.8.6 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (1.40.0) Requirement already satisfied: termcolor>=1.1.0 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (1.1.0) Requirement already satisfied: keras-applications>=1.0.6 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-gpu>=1.6->dirt==0.3.0) (1.0.8) Requirement already satisfied: mock>=2.0.0 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorflow-estimator<1.14.0rc0,>=1.13.0->tensorflow-gpu>=1.6->dirt==0.3.0) (3.0.5) Requirement already satisfied: markdown>=2.6.8 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorboard<1.14.0,>=1.13.0->tensorflow-gpu>=1.6->dirt==0.3.0) (3.2.2) Requirement already satisfied: werkzeug>=0.11.15 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from tensorboard<1.14.0,>=1.13.0->tensorflow-gpu>=1.6->dirt==0.3.0) (1.0.1) Requirement already satisfied: h5py in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from keras-applications>=1.0.6->tensorflow-gpu>=1.6->dirt==0.3.0) (2.10.0) Requirement already satisfied: importlib-metadata; python_version < "3.8" in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from markdown>=2.6.8->tensorboard<1.14.0,>=1.13.0->tensorflow-gpu>=1.6->dirt==0.3.0) (2.1.1) Requirement already satisfied: zipp>=0.5 in /home/fangshukai/miniconda3/envs/MultiGarmentNet/lib/python3.5/site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<1.14.0,>=1.13.0->tensorflow-gpu>=1.6->dirt==0.3.0) (1.2.0) Building wheels for collected packages: dirt Running setup.py bdist_wheel for dirt ... done Stored in directory: /home/fangshukai/.cache/pip/wheels/f7/b6/3a/f2a258821d145fac933046b4fe260c0a9bac8a98c4ad1bfe0c Successfully built dirt Installing collected packages: dirt Found existing installation: dirt 0.3.0 Uninstalling dirt-0.3.0: Successfully uninstalled dirt-0.3.0 Successfully installed dirt-0.3.0 '''
When I run test.py, the entire log is as follows
'''
(MultiGarmentNet) fangshukai@10-108-80-111:~/dirt-master$ python tests/square_test.py
WARNING: failed to load librasterise.so; rasterisation functions will be unavailable:
/home/fangshukai/dirt-master/dirt/librasterise.so: cannot open shared object file: No such file or directory
2021-09-13 15:05:03.768754: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2021-09-13 15:05:08.980765: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x4964910 executing computations on platform CUDA. Devices:
2021-09-13 15:05:08.981128: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:08.981271: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (1): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:08.981400: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (2): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:08.981493: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (3): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:08.981523: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (4): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:08.981621: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (5): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:08.981650: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (6): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:08.981674: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (7): TITAN X (Pascal), Compute Capability 6.1
2021-09-13 15:05:09.023536: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2200075000 Hz
2021-09-13 15:05:09.026460: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x4aff2d0 executing computations on platform Host. Devices:
2021-09-13 15:05:09.026527: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0):
If you need other information, please let me know. Thanks in advance!
Update:
I solved this issue by following
cd dirt mkdir build ; cd build cmake ../csrc make cd .. pip install -e .
instead of directly typing in pip install .
I use the " cd dirt mkdir build ; cd build cmake ../csrc make cd .. pip install -e ." , and tensorflow-1.15.0, python3.7, cuda10.0, It have the error : none of 1 egl devices matches the active cuda device Need to set CUDA_HOME. LD_LIBRARY_PATH, PATH and CMAKE_LIBRARY_PATH ?
Traceback (most recent call last): File "tests/square_test.py", line 61, in
main()
File "tests/square_test.py", line 47, in main
dirt_pixels = get_dirt_pixels().eval()
File "tests/square_test.py", line 35, in get_dirt_pixels
height=canvas_height, width=canvas_width, channels=1
File "/home/ubuntu/dirt/dirt/rasterise_ops.py", line 49, in rasterise
return rasterise_batch(background[None], vertices[None], vertex_colors[None], faces[None], height, width, channels, name)[0]
File "/home/ubuntu/dirt/dirt/rasterise_ops.py", line 82, in rasterise_batch
return _rasterise_module.rasterise(
AttributeError: 'NoneType' object has no attribute 'rasterise'
@pmh47 please advise . A bit urgent I have tried reinstalling tf gpu packages , libopengl , export LD_LIBRARY_PATH but still getting same error