ayushgaud / darknet_ros

ROS wrapper for darknet (YOLO V2) with OpenCV 3 and Kinetic support
13 stars 8 forks source link

view window freezes after launching #5

Closed edanweis closed 7 years ago

edanweis commented 7 years ago

After launching, a window appears, and weights are correctly loaded, but then the window freezes with no error message. The window appears black

What could be wrong ?

started core service [/rosout]
process[darknet_ros_wrapper-2]: started with pid [2696]
init done
layer     filters    size              input                output
    0 conv     16  3 x 3 / 1   416 x 416 x   3   ->   416 x 416 x  16
    1 max          2 x 2 / 2   416 x 416 x  16   ->   208 x 208 x  16
    2 conv     32  3 x 3 / 1   208 x 208 x  16   ->   208 x 208 x  32
    3 max          2 x 2 / 2   208 x 208 x  32   ->   104 x 104 x  32
    4 conv     64  3 x 3 / 1   104 x 104 x  32   ->   104 x 104 x  64
    5 max          2 x 2 / 2   104 x 104 x  64   ->    52 x  52 x  64
    6 conv    128  3 x 3 / 1    52 x  52 x  64   ->    52 x  52 x 128
    7 max          2 x 2 / 2    52 x  52 x 128   ->    26 x  26 x 128
    8 conv    256  3 x 3 / 1    26 x  26 x 128   ->    26 x  26 x 256
    9 max          2 x 2 / 2    26 x  26 x 256   ->    13 x  13 x 256
   10 conv    512  3 x 3 / 1    13 x  13 x 256   ->    13 x  13 x 512
   11 max          2 x 2 / 1    13 x  13 x 512   ->    13 x  13 x 512
   12 conv   1024  3 x 3 / 1    13 x  13 x 512   ->    13 x  13 x1024
   13 conv   1024  3 x 3 / 1    13 x  13 x1024   ->    13 x  13 x1024
   14 conv    125  1 x 1 / 1    13 x  13 x1024   ->    13 x  13 x 125
   15 detection
Loading weights from /home/edanweis/catkin_ws/src/darknet_ros/tiny-yolo-voc.weights...Done!
ayushgaud commented 7 years ago

You will have to remap the input for /camera/image_raw to your desired image topic.

edanweis commented 7 years ago

@ayushgaud Sorry, I'm new to ROS. I am running usb_cam node and have changed the object_detect.launch to <remap from="usb_cam/image_raw" to="/camera/rgb/image_raw"/> But still getting a frozen window.

edanweis commented 7 years ago

Fixed with <remap from="/camera/image_raw" to="/usb_cam/image_raw"/>