GithubHelp home page GithubHelp logo

[ WARN:[email protected]] global /io/opencv/modules/dnn/src/dnn.cpp (1483) setUpNet DNN module was not built with CUDA backend; switching to CPU about yolov4-detector-and-distance-estimator HOT 7 OPEN

asadullah-dal17 avatar asadullah-dal17 commented on June 1, 2024
[ WARN:[email protected]] global /io/opencv/modules/dnn/src/dnn.cpp (1483) setUpNet DNN module was not built with CUDA backend; switching to CPU

from yolov4-detector-and-distance-estimator.

Comments (7)

BraholliKristi avatar BraholliKristi commented on June 1, 2024

I have Successfully installed opencv-contrib-python-4.5.5.64

from yolov4-detector-and-distance-estimator.

Asadullah-Dal17 avatar Asadullah-Dal17 commented on June 1, 2024

Make sure to choose the correct environment, while running the code.

from yolov4-detector-and-distance-estimator.

hfatima08 avatar hfatima08 commented on June 1, 2024

what do you mean by choosing the correct environment? What should i do to solve this issue? I'm using pycharm to run your code.

from yolov4-detector-and-distance-estimator.

Asadullah-Dal17 avatar Asadullah-Dal17 commented on June 1, 2024

a python Virtual Envnieorment in which you have installed required version of opencv

from yolov4-detector-and-distance-estimator.

hfatima08 avatar hfatima08 commented on June 1, 2024

but the version you have mentioned is not being installed in the environment

from yolov4-detector-and-distance-estimator.

Asadullah-Dal17 avatar Asadullah-Dal17 commented on June 1, 2024

have you got any specific error message while installation process?

from yolov4-detector-and-distance-estimator.

vlasov01 avatar vlasov01 commented on June 1, 2024

Hi,
I've got the same error. I've applied an answer from https://stackoverflow.com/questions/32978575/how-to-fix-indexerror-invalid-index-to-scalar-variable in three places.
But I think without CUDA it is too slow for my RPi4.
And I got another error:
[h264 @ 0x10ad7e20] error while decoding MB 45 2, bytestream -13
Traceback (most recent call last):
File "/home/swim/Yolov4-Detector-and-Distance-Estimator/DistanceEstimation.py", line 92, in
data = object_detector(frame)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/swim/Yolov4-Detector-and-Distance-Estimator/DistanceEstimation.py", line 35, in object_detector
classes, scores, boxes = model.detect(image, CONFIDENCE_THRESHOLD, NMS_THRESHOLD)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.6.0) ./modules/imgproc/src/resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

from yolov4-detector-and-distance-estimator.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.