Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewing Output #4

Open
shrybht opened this issue Sep 27, 2018 · 12 comments
Open

Viewing Output #4

shrybht opened this issue Sep 27, 2018 · 12 comments

Comments

@shrybht
Copy link

shrybht commented Sep 27, 2018

Hi @arunponnusamy

I am a beginner and trying to run the code you provided. After running the code, I was expecting to see the output something similar to:
image

But, I guess my code is not running completely, because I see just this:
image

Could you please help me out?

@arunponnusamy
Copy link
Owner

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 ?

@shrybht
Copy link
Author

shrybht commented Sep 27, 2018

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?

@shrybht
Copy link
Author

shrybht commented Sep 27, 2018

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

@shrybht shrybht closed this as completed Sep 27, 2018
@yjdeveloper
Copy link

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.

@arunponnusamy arunponnusamy reopened this Dec 2, 2018
@arunponnusamy
Copy link
Owner

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 ?

@yjdeveloper
Copy link

yjdeveloper commented Dec 2, 2018 via email

@arunponnusamy
Copy link
Owner

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

@yjdeveloper
Copy link

yjdeveloper commented Dec 2, 2018 via email

@awaishere
Copy link

awaishere commented Sep 29, 2019

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

@vaibhavnayak30
Copy link

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

@chaitanya-vardhan123
Copy link

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

@Glitch0000
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants