Open Chethan187 opened 3 years ago
Is the script actually finishing? Check the CPU usage spikes then drops off and the python script returns. It's not using your GPU so inference will take a bit longer, I've not tested the script without GPU support
Thanks. Yeah. I was trying without GPU.
Now, i'm trying with gpu but getting the below error: AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'
Below are the versions: Tf - 2.5.0 Keras - 2.4.3 Cuda - 11 GeForce RTX 2080 Ti
Kindly, suggest.
After running textDetector.py not getting predicted images, but getting no errors. (env) C:\Users\Chethan\Desktop\Projects\RetinanetTutorial\keras-retinanet>python keras_retinanet/bin/convert_model.py C:\Users\Chethan\Desktop\Projects\RetinanetTutorial\RetinanetModels\PlumsTraining.h5 C:\Users\Chethan\Desktop\Projects\RetinanetTutorial\RetinanetModels\PlumsInference.h5 2021-07-28 22:09:08.271572: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2021-07-28 22:09:08.271687: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2021-07-28 22:09:09.933168: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library nvcuda.dll 2021-07-28 22:09:10.913392: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties: pciBusID: 0000:01:00.0 name: GeForce MX250 computeCapability: 6.1 coreClock: 1.582GHz coreCount: 3 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 52.21GiB/s 2021-07-28 22:09:10.915808: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2021-07-28 22:09:10.924053: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_10.dll not found 2021-07-28 22:09:10.925961: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found 2021-07-28 22:09:10.927965: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found 2021-07-28 22:09:10.930570: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found 2021-07-28 22:09:10.932622: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cusparse64_10.dll'; dlerror: cusparse64_10.dll not found 2021-07-28 22:09:10.934544: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found 2021-07-28 22:09:10.934688: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1753] 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... Using TensorFlow backend. 2021-07-28 22:09:11.189453: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2021-07-28 22:09:11.199480: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x22d6bbb0a20 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2021-07-28 22:09:11.203586: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2021-07-28 22:09:11.205291: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1257] Device interconnect StreamExecutor with strength 1 edge matrix: 2021-07-28 22:09:11.205534: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1263]