Closed onlineapps-cloud closed 5 months ago
after rebooting machine, i get this error:
Trace ALPR_adapter.py: Running init for License Plate Reader
Error sound_classification_adapter.py: 2024-03-25 15:58:25.404707: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Error sound_classification_adapter.py: WARNING:tensorflow:From /usr/bin/codeproject.ai-server-2.5.4/modules/SoundClassifierTF/bin/linux/python39/venv/lib/python3.9/site-packages/tensorflow/python/compat/v2_compat.py:108: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Error sound_classification_adapter.py: Instructions for updating:
Error sound_classification_adapter.py: non-resource variables are not supported in the long term
Error sound_classification_adapter.py: 2024-03-25 15:58:36.759006: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
Error sound_classification_adapter.py: 2024-03-25 15:58:37.781598: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Error sound_classification_adapter.py: Skipping registering GPU devices..
strange is that nvidia-smi say that i have installed cuda 12, but python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))" say that i don't have cuda installed
root@ubuntu:/home/ubuntu# python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2024-03-25 16:43:13.892817: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 16:43:15.158724: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 16:43:18.191431: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-03-25 16:43:23.652032: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2024-03-25 16:43:27.289394: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:998] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2024-03-25 16:43:27.294061: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2251] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
[]
root@ubuntu:/home/ubuntu# nvidia-smi
Mon Mar 25 16:43:45 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.161.07 Driver Version: 535.161.07 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce GTX 1070 Off | 00000000:06:10.0 Off | N/A |
| 0% 29C P8 11W / 250W | 4MiB / 8192MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
+---------------------------------------------------------------------------------------+
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2024-03-25 17:33:34.414644: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 17:33:34.470019: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-25 17:33:34.684616: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-03-25 17:33:35.693581: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2024-03-25 17:33:37.085932: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:998] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2024-03-25 17:33:38.488526: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2251] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
[]
ubuntu@ubuntu:~$ pip install tensorrt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: tensorrt in ./.local/lib/python3.9/site-packages (8.6.1.post1)
in finally i fix all problems with codeproject
Sorry to necro this, but how? I'm running a 1080 in my server (had a spare) and I get those errors on every module except the basic YOLOv5 6.2, which actually does run using the GPU.
Sorry to necro this, but how? I'm running a 1080 in my server (had a spare) and I get those errors on every module except the basic YOLOv5 6.2, which actually does run using the GPU.
check my repply https://github.com/codeproject/CodeProject.AI-Server/issues/89#issuecomment-2064816912
The link seems to be broken, unfortunately.
my comment link is broken or mega.nz link? because i checked right now, and all links work as expected.
You're right. The site was being blocked by my router. I'll have to dig into that later.
Describe the bug hi, i installed License Plate Reader from codeproject ai, but when i want to run on GPU, i get in logs that GPU module not installed, how to install needed module manually?
Expected behavior i expect to to run License Plate Reader on GPU.
Additional context system info:
log from switching on GPU :
Installation Log: