pete-machine / yolo_v2_ros

Other
11 stars 2 forks source link

error after make. unable to run the darknet separately #1

Open saurabhbajaj123 opened 7 years ago

saurabhbajaj123 commented 7 years ago

./darknet detect cfg/yolo.cfg yolo.weights data/dog.jpg not working error - Cannot load image "data/labels/33_0.png" STB Reason: can't fopen

saurabhbajaj123 commented 7 years ago

Ubuntu 14.04 Cuda 8 opencv 3.2.0 ROS indigo

pete-machine commented 7 years ago

Yes, you are absolutely right - my code have not been probably tested. All label and test images have not been included in the git. I have now added them. Hopefully, you will just need to do a 'git pull' in the yolo folder (from terminal) to fix the issue...

My code is just a "wrapper" for running yolo2 in ROS. If you don't wanna use ros... I definitely recommend you to get darknet/yolo2 from the original source (homepage and github)

saurabhbajaj123 commented 7 years ago

I want to run yolo with ros only. after downloading the updated data directory, the command seems to run, but isn't showing any bounding boxes. the last command "roslaunch yolo_v2_ros RunWebCamAndYolo.launch" doesnt work. I think the package doesn't has this launch file.

pete-machine commented 7 years ago

If you only wanna use ROS, you actually don't need to run the 'make' command... Bounding boxes will only show, if you have set OPENCV=1 in the Makefile. However, with OPENCV=0 a new image will be generated in the source folder displaying image bounding boxes. The launch files have just been renamed. I have pushed a new README, showing the correct command.

saurabhbajaj123 commented 7 years ago

I tried running the launch command - roslaunch yolo_v2_ros usb_web_cam.launch. But I cannot see anything in the windows. I'll attach a screen shot of what I can see. Can you please help me out by resolving this problem. screenshot from 2017-05-17 17 54 37

pete-machine commented 7 years ago

Don't know what that is... It seems to be an opencv problem. I don't know how to fix that. Sorry.

saurabhbajaj123 commented 7 years ago

Please Can you upload a screenshot of the two windows yolo/imageYolo and logitech_webcam/image_raw on your screen and the screenshot of the terminal as well. Just to compare.

pete-machine commented 7 years ago

Okay. The image have been attached. The launch-file "usb_web_cam.launch" also had to point to "/usb_cam/image_raw" to show the raw image (without detections). However, this is not the cause of your error. screenshot from 2017-05-18 13-03-00

saurabhbajaj123 commented 7 years ago

Thank you for replying.That seems to work perfectly fine on your computer.

Other than the launch files in the launch folder, have you added some files to the source folder? Like src/yoloInterface.c src/yoloInterface.h

These were not present in the original package.

Can you please tell, from where did you download opencv, because I think this is a problem because of ros and opencv version.

Thank You