Open armansamimi opened 2 years ago
Same error.
same error
It seems your input video is not in the correct format. When Open CV tries to read the frame/image from the video it finds it as empty or currented frame. Please try on some other videos.
you can also check the frame.shape before resize to make sure your image/frame is valid.
Thanks! Data Magic AI Sunny Kusawa
On Sat, 19 Aug 2023 at 14:28, abbagowniakash @.***> wrote:
same error
— Reply to this email directly, view it on GitHub https://github.com/datamagic2020/Emotion_detection_with_CNN/issues/1#issuecomment-1684898047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3TB6AYEFZI337M3NWYRELXWB54ZANCNFSM53HCHAIQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>
Dear Sir or Madam, Thanks for your perfect project, I have recently downloaded your code, whenever I run this program, I get the log message::
`2022-07-11 14:07:54.071816: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2022-07-11 14:07:54.072299: 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. 2022-07-11 14:07:59.004639: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2022-07-11 14:07:59.006895: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found 2022-07-11 14:07:59.008711: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found 2022-07-11 14:07:59.020651: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusolver64_11.dll'; dlerror: cusolver64_11.dll not found 2022-07-11 14:07:59.022187: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found 2022-07-11 14:07:59.023715: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found 2022-07-11 14:07:59.024096: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1934] 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... 2022-07-11 14:07:59.025326: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Loaded model from disk Traceback (most recent call last): File "E:/Arman/My Project/Project61-aimentalEmotionDetection/Git_Emotio_Detection/Emotion_detection_with_CNN/TestEmotionDetector.py", line 28, in
frame = cv2.resize(frame, (1280, 720))
cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-oduouqig\opencv\modules\imgproc\src\resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
`
What should I do?
Thanks so much,
Arman