GithubHelp home page GithubHelp logo

Comments (12)

shrybht avatar shrybht commented on July 17, 2024 1

I got the output. I had the weights downloaded into a wrong folder.
Thanks.

from object-detection-opencv.

arunponnusamy avatar arunponnusamy commented on July 17, 2024

Hello @shrybht , May I know the command you are using to run the script ? Did you download the YOLO v3 weights file from the link provided in readme ?

from object-detection-opencv.

shrybht avatar shrybht commented on July 17, 2024

Thanks for your quick response. I apologize. I have mixed up some commands.

And, yes I did download the weights and followed every step you had mentioned.
If I am using the below command:

python yolo_opencv.py --image dog.jpg --config yolov3.cfg --weights yolov3.weights --classes yolov3.txt

I am getting this error:

Traceback (most recent call last): File "yolo_opencv.py", line 57, in <module> net = cv2.dnn.readNet(args.weights, args.config) cv2.error: OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_io.cpp:684: error: (-215:Assertion failed) ifile.is_open() in function 'cv::dnn::darknet::ReadDarknetFromWeightsFile'

Could you help me proceed further?

from object-detection-opencv.

yjdeveloper avatar yjdeveloper commented on July 17, 2024

I have trained my own dataset in darknet and I used darket way of testing and the result was pretty good. I have used your program to convert it to OpenCV but I am unable to see the bounding boxes in the image. I have used same image for testing in darknet and OpenCV.

from object-detection-opencv.

arunponnusamy avatar arunponnusamy commented on July 17, 2024

Hello @yjdeveloper , May I know the command you are using to run the script ?
And Python and OpenCV version ? You used YOLO v3 to train ?

from object-detection-opencv.

yjdeveloper avatar yjdeveloper commented on July 17, 2024

from object-detection-opencv.

arunponnusamy avatar arunponnusamy commented on July 17, 2024

Can you share the command you are using to run the Python script ?

from object-detection-opencv.

yjdeveloper avatar yjdeveloper commented on July 17, 2024

from object-detection-opencv.

awaishere avatar awaishere commented on July 17, 2024

Had u resolved the @yjdeveloper 's issue because i also want to use your code with my own trained modal ?
@arunponnusamy

from object-detection-opencv.

vaibhavnayak30 avatar vaibhavnayak30 commented on July 17, 2024

my model is giving good results when testing through darknet but its not giving results when using the given code for custom objects. what can be the issue

from object-detection-opencv.

chaitanya-vardhan123 avatar chaitanya-vardhan123 commented on July 17, 2024

@yjdeveloper can you share me the links that you trained withdarknet and testing that you have done?

from object-detection-opencv.

Glitch0000 avatar Glitch0000 commented on July 17, 2024

I think you should add the address but make sure to double the slashes,
instead of lets say"E:\YOLO1\cfg" you should write "E:\YOLO1\cfg"

from object-detection-opencv.

Related Issues (20)

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.