pgigioli / darknet_ros Goto Github PK
View Code? Open in Web Editor NEWYOLO integration with ROS for real-time object detection
YOLO integration with ROS for real-time object detection
I want another node subscribe this class label.
Hi~ I am having a bit of a problem~
when i catkin_make, it have a problem about "fatal error: darknet_ros/bbox_array.h: No such file or directory
#include <darknet_ros/bbox_array.h>"
It may the darknet_ros folder don't have bbox_array.h and bbox.h file?
Thanks you~
Hello, i am sorry to disturb you, i want to use the darknet_ros on ubuntu16.04 with a TITAN Xp GPU and ros kinetic , and i have passed the catkin_make, besides, i changed the related path as following:
char cfg = "/home/robot/catkin_ws/src/darknet_ros/cfg/tiny-yolo.cfg";
char weights = "/home/robot/catkin_ws/src/darknet_ros/tiny-yolo.weights";
float thresh = 0.2;
const std::string CAMERA_TOPIC_NAME = "/kinect2/qhd/image_color";
but when I rosrun the ROS_interface, it always turns up "Segmentation fault (core dumped)", and i tried to give the net an image instead of capturing the image from the topic, as following:
void cameraCallback(const sensor_msgs::ImageConstPtr& msg)
{
std::cout << "usb image received" << std::endl;
cv_bridge::CvImagePtr cam_image;
cam_image_copy = cv::imread("/home/robot/Pictures/tar_test.jpeg", 1 );
ROS_INFO("IMAGE READED");
/*
try
{
cam_image = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::BGR8);
}
catch (cv_bridge::Exception& e)
{
ROS_ERROR("cv_bridge exception: %s", e.what());
return;
}
*/
//if (cam_image)
//{
//cam_image_copy = cam_image->image.clone();
demo_yolo();
//}
return;
}
At last, the error did not vanish, as following:
YOLO demo
0: Convolutional Layer: 448 x 448 x 3 image, 16 filters -> 448 x 448 x 16 image
1: Maxpool Layer: 448 x 448 x 16 image, 2 size, 2 stride
2: Convolutional Layer: 224 x 224 x 16 image, 32 filters -> 224 x 224 x 32 image
3: Maxpool Layer: 224 x 224 x 32 image, 2 size, 2 stride
4: Convolutional Layer: 112 x 112 x 32 image, 64 filters -> 112 x 112 x 64 image
5: Maxpool Layer: 112 x 112 x 64 image, 2 size, 2 stride
6: Convolutional Layer: 56 x 56 x 64 image, 128 filters -> 56 x 56 x 128 image
7: Maxpool Layer: 56 x 56 x 128 image, 2 size, 2 stride
8: Convolutional Layer: 28 x 28 x 128 image, 256 filters -> 28 x 28 x 256 image
9: Maxpool Layer: 28 x 28 x 256 image, 2 size, 2 stride
10: Convolutional Layer: 14 x 14 x 256 image, 512 filters -> 14 x 14 x 512 image
11: Maxpool Layer: 14 x 14 x 512 image, 2 size, 2 stride
12: Convolutional Layer: 7 x 7 x 512 image, 1024 filters -> 7 x 7 x 1024 image
13: Convolutional Layer: 7 x 7 x 1024 image, 256 filters -> 7 x 7 x 256 image
14: Connected Layer: 12544 inputs, 1470 outputs
15: Detection Layer
forced: Using default '0'
Loading weights from /home/robot/catkin_ws/src/darknet_ros/tiny-yolo.weights...Done!
usb image received
[ INFO] [1508989693.852160839]: IMAGE READED
CUDA Error: invalid device function
ROS_interface: /home/robot/catkin_ws/src/darknet_ros/src/cuda.c:21: check_error: Assertion `0' failed.
Aborted (core dumped)
And parts of the dmesg output is as following:
[ 42.874807] [drm:nvidia_drm_gem_prime_fence_force_signal [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000300] Failed to lookup gem object for fence attach: 0x00000004
[ 42.875341] [drm:nvidia_drm_gem_prime_fence_force_signal [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000300] Failed to lookup gem object for fence attach: 0x00000004
[ 195.291960] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 196.056566] show_signal_msg: 13 callbacks suppressed
[ 196.056569] ROS_interface[3557]: segfault at 0 ip (null) sp 00007ffc11866698 error 14 in ROS_interface[400000+15d000]
[ 227.933021] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 228.717928] traps: ROS_interface[3598] general protection ip:7f3cad8aa4e5 sp:7fffa796b340 error:0
[ 228.717933] in libopencv_core.so.2.4.13[7f3cad73f000+294000]
[ 463.603282] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 464.359962] ROS_interface[4115]: segfault at 0 ip (null) sp 00007ffd583054b8 error 14 in ROS_interface[400000+15d000]
[ 614.896886] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 837.687950] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 838.471002] yolo_object_det[4614]: segfault at 0 ip (null) sp 00007ffc7d34c3f8 error 14 in yolo_object_detector[400000+16c000]
[ 1560.863665] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 1561.649718] ROS_interface[5293]: segfault at 0 ip (null) sp 00007ffd703e2208 error 14 in ROS_interface[400000+15d000]
[ 1566.871426] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 1567.650238] yolo_object_det[5323]: segfault at 2010040 ip 00007fcb9f68d4e5 sp 00007ffc8e6f8060 error 4 in libopencv_core.so.2.4.13[7fcb9f522000+294000]
[ 1628.468934] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 1629.245958] ROS_interface[5635]: segfault at 0 ip (null) sp 00007fffe98ccf58 error 14 in ROS_interface[400000+15d000]
[ 1634.021019] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 1634.076945] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 1634.845787] yolo_object_det[5665]: segfault at 0 ip (null) sp 00007ffed6177f98 error 14 in yolo_object_detector[400000+16c000]
[ 2354.325439] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 5297.432565] perf: interrupt took too long (2504 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[ 5566.135706] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 5566.874218] ROS_interface[10371]: segfault at 0 ip (null) sp 00007ffcb2b9e3e8 error 14 in ROS_interface[400000+15d000]
[ 5610.947937] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 5611.714759] ROS_interface[10408]: segfault at 0 ip (null) sp 00007ffc912ba288 error 14 in ROS_interface[400000+15d000]
[ 5619.312463] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 5620.076744] ROS_interface[10699]: segfault at 0 ip (null) sp 00007ffd26f9f608 error 14 in ROS_interface[400000+15d000]
[ 5678.754142] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 5678.757050] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
[ 5679.501654] ROS_interface[10993]: segfault at 0 ip (null) sp 00007ffd0e1512d8 error 14 in ROS_interface[400000+15e000]
i really need your help. Look forward to your soonest reply.
yours sincerely Hanker.
Hey, I used a self trained tiny-yolo network with your node and got it working but somehow the detection of some classes are quite different while the others work perfectly fine. Does somebody have the same issue?
The line should be
add_dependencies(single_image_test darknet_ros_generate_messages_cpp)
add_dependencies(yolo_ros darknet_ros_generate_messages_cpp)
otherwise it won't build on the first try
Hi I'm trying to run the single_test_image example.
rosrun darknet_ros single_image_test /home/ak/Git/DIYROBOCAR_BLR/mit_racecar_ws/src/darknet_ros/data/dog.jpg
Get the following error:
`[100%] Built target single_image_test
ak@akAW:/Git/DIYROBOCAR_BLR/mit_racecar_ws$ source devel/setup.bash/Git/DIYROBOCAR_BLR/mit_racecar_ws$ rosrun darknet_ros single_image_test /home/ak/Git/DIYROBOCAR_BLR/mit_racecar_ws/src/darknet_ros/data/dog.jpg
ak@akAW:
Loading network...
Couldn't open file: /home/Git/DIYROBOCAR_BLR/mit_racecar_ws/src/darknet_ros/cfg/yolo-voc.cfg`
First I tried with the tiny-yolo-voc.cfg and then the one mentioned above. Any help is appreciated. Thanks
My system config:
Ubuntu 16.04
CUDA 8.0
hi, pgigioli
I'm very sorry to bother you,when i use the yolo-tiny.cfg and yolo-tiny.weights ,the program works;but when i change to yolo.yolocfg and yolo.weights, error occurs .
that is
22: Convolutional Layer: 13 x 13 x 512 image, 1024 filters -> 13 x 13 x 1024 image
23: Convolutional Layer: 13 x 13 x 1024 image, 1024 filters -> 13 x 13 x 1024 image
24: Convolutional Layer: 13 x 13 x 1024 image, 1024 filters -> 13 x 13 x 1024 image
25: Route Layer: 16
26: Type not recognized: [reorg]
Unused field: 'stride = 2'
27: Route Layer: 26 24
28: Layer before convolutional layer must output image.: File exists
ROS_interface: /home/lile/catkin_ws/src/darknet_ros-master/src/utils.c:181: error: Assertion
0' failed.
Aborted (core dumped)`
and i can't work it out ,can you help me ?
thank you your time!
Hi, the package is arranged in neat and elegant way. Thanks!
But, the frame rate is too low and sometimes screen goes dark.
I'm using PS3 eye webcam and i5 lenovo x220 , is it normal?
also change ros.yaml here to my /usb_cam/image_raw topic. (ROS usb_cam)
Did i mess up something?
thank you.
Hello, I got a little problem using darknet_ros, I have changed the cfg and weights path to my own file, the node can detect target object, but the bbox coordinates are 0, shown in the following picture:
I have test my cfg and weights file in yolo and the result is good.
May I ask you how to solve this problem?
Thank you!
Hi, so I've been trying to run with a different weight and cfg file than voc, and have gotten it to run but no detection occurs. I've simply changed the two parameters in yolo_ros.cpp. Is there anything else that needs to be changed in order to run with a different network such as yolo-obj.cfg?
I am sorry to disturb you again. when I tried to test the single_image_test node, i found that the result of the node recognition is much different with the darknet yolo test example using the same cfg file and weights file. it seems result of yolo is much better, the detail is as following:
the single_image_test:
rosrun darknet_ros single_image_test
init done
image:/home/robot/Pictures/car_assemble/00090.jpg
image width:1920,image height:1080
Loading network...
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 55 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 55
15 detection
mask_scale: Using default '1.000000'
Loading weights from /home/robot/catkin_ws/src/darknet_ros/weights/tiny-yolo-voc_final.weights...Done!
FPS:0.0
FPS: 6.62461e-10
#Objects: 5
0.288215 0.627939 0.0235804 0.05999
hand 0.0721917
0.32779 0.676095 0.0217603 0.059309
screw_short 0.10264
0.489685 0.682697 0.0360985 0.095257
hand 0.0526488
0.489685 0.682697 0.0360985 0.095257
screw_driver 0.0519082
0.345631 0.724738 0.0234073 0.0420611
screw_short 0.062739
the darknet yolo:
./darknet detector test cfg/voc.data cfg/tiny-yolo-voc.cfg results/tiny-yolo-voc_final.weights data/car_assemble/00090.jpg
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 55 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 55
15 detection
mask_scale: Using default '1.000000'
Loading weights from results/tiny-yolo-voc_final.weights...Done!
data/car_assemble/00090.jpg: Predicted in 0.002944 seconds.
hand: 69%
shell_1: 75%
hand: 72%
screw_short: 40%
screw_long: 74%
base: 89%
And these recognition rectangles of darknet yolo is much precise than the single image test node on the image when i show the result using opencv imshow function.
can you give me some advice about this problem.
thank you very much!
I tried installing this for ROS Jade on Ubuntu 15.04
When I try to build the node (via catkin_make), I get the following error:
-- +++ processing catkin package: 'darknet_ros'
-- ==> add_subdirectory(darknet_ros)
CMake Error at /opt/ros/jade/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
Could not find a package configuration file provided by "face_tracker" with
any of the following names:
face_trackerConfig.cmake
face_tracker-config.cmake
Add the installation prefix of "face_tracker" to CMAKE_PREFIX_PATH or set
"face_tracker_DIR" to a directory containing one of the above files. If
"face_tracker" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
darknet_ros/CMakeLists.txt:6 (find_package)
Where can I find this dependency? As far as I can tell, there is no ros-jade-face-tracker package, and I couldn't find a repo with that name via google/github search.
Good morning,
I have succesfully compiled the package on my Jetson TX2 working with CUDA 9.0 after commenting compute_20. I am succesfully subscribing to a topic called /frame, coming from a ARDrone Camera. I see the the yolo node propperly subscribed to my /topic frame, but the image never comes to the screen and unfortunately I am not able to make it work, I get the error you can see below. It seems it can't locate node [Image] in package [sensor_msgs], any idea how to fix these?
Thanks so much in advance for your help. Any comment is more than welcome,
nvidia@tegra-ubuntu:~$ roslaunch darknet_ros yolo_ros.launch
... logging to /home/nvidia/.ros/log/fceb28ac-4072-11e8-83b2-00044ba7e029/roslaunch-tegra-ubuntu-3952.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://tegra-ubuntu:33951/
PARAMETERS
NODES
/
camara_dron (sensor_msgs/Image)
yolo_ros (darknet_ros/yolo_ros)
auto-starting new master
process[master]: started with pid [3962]
ROS_MASTER_URI=http://tegra-ubuntu:11311
setting /run_id to fceb28ac-4072-11e8-83b2-00044ba7e029
process[rosout-1]: started with pid [3976]
started core service [/rosout]
ERROR: cannot launch node of type [sensor_msgs/Image]: can't locate node [Image] in package [sensor_msgs]
process[yolo_ros-3]: started with pid [3993]
layer filters size input output
0 conv 64 7 x 7 / 2 448 x 448 x 3 -> 224 x 224 x 64
1 max 2 x 2 / 2 224 x 224 x 64 -> 112 x 112 x 64
2 conv 192 3 x 3 / 1 112 x 112 x 64 -> 112 x 112 x 192
3 max 2 x 2 / 2 112 x 112 x 192 -> 56 x 56 x 192
4 conv 128 1 x 1 / 1 56 x 56 x 192 -> 56 x 56 x 128
5 conv 256 3 x 3 / 1 56 x 56 x 128 -> 56 x 56 x 256
6 conv 256 1 x 1 / 1 56 x 56 x 256 -> 56 x 56 x 256
7 conv 512 3 x 3 / 1 56 x 56 x 256 -> 56 x 56 x 512
8 max 2 x 2 / 2 56 x 56 x 512 -> 28 x 28 x 512
9 conv 256 1 x 1 / 1 28 x 28 x 512 -> 28 x 28 x 256
10 conv 512 3 x 3 / 1 28 x 28 x 256 -> 28 x 28 x 512
11 conv 256 1 x 1 / 1 28 x 28 x 512 -> 28 x 28 x 256
12 conv 512 3 x 3 / 1 28 x 28 x 256 -> 28 x 28 x 512
13 conv 256 1 x 1 / 1 28 x 28 x 512 -> 28 x 28 x 256
14 conv 512 3 x 3 / 1 28 x 28 x 256 -> 28 x 28 x 512
15 conv 256 1 x 1 / 1 28 x 28 x 512 -> 28 x 28 x 256
16 conv 512 3 x 3 / 1 28 x 28 x 256 -> 28 x 28 x 512
17 conv 512 1 x 1 / 1 28 x 28 x 512 -> 28 x 28 x 512
18 conv 1024 3 x 3 / 1 28 x 28 x 512 -> 28 x 28 x1024
19 max 2 x 2 / 2 28 x 28 x1024 -> 14 x 14 x1024
20 conv 512 1 x 1 / 1 14 x 14 x1024 -> 14 x 14 x 512
21 conv 1024 3 x 3 / 1 14 x 14 x 512 -> 14 x 14 x1024
22 conv 512 1 x 1 / 1 14 x 14 x1024 -> 14 x 14 x 512
23 conv 1024 3 x 3 / 1 14 x 14 x 512 -> 14 x 14 x1024
24 conv 1024 3 x 3 / 1 14 x 14 x1024 -> 14 x 14 x1024
25 conv 1024 3 x 3 / 2 14 x 14 x1024 -> 7 x 7 x1024
26 conv 1024 3 x 3 / 1 7 x 7 x1024 -> 7 x 7 x1024
27 conv 1024 3 x 3 / 1 7 x 7 x1024 -> 7 x 7 x1024
28 connected 50176 -> 4096
29 connected 4096 -> 1470
30 Detection Layer
forced: Using default '0'
Unused field: 'b_debug = 1'
Loading weights from /home/nvidia/Documents/yolo/yolo.weights...Done!
[yolo_ros-3] process has died [pid 3993, exit code -11, cmd /home/nvidia/catkin_ws/devel/lib/darknet_ros/yolo_ros __name:=yolo_ros __log:=/home/nvidia/.ros/log/fceb28ac-4072-11e8-83b2-00044ba7e029/yolo_ros-3.log].
log file: /home/nvidia/.ros/log/fceb28ac-4072-11e8-83b2-00044ba7e029/yolo_ros-3*.log
Hi, I clone your code ,and catkin_make, get this error, I use ubuntu16.04 and cuda9.0 , kinetics, what can i do?
-- Using CATKIN_DEVEL_PREFIX: /home/roy/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/roy/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/roy/catkin_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/roy/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.6
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - darknet_ros
-- ~~ - usb_cam
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'darknet_ros'
-- ==> add_subdirectory(darknet_ros)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- darknet_ros: 2 messages, 0 services
-- +++ processing catkin package: 'usb_cam'
-- ==> add_subdirectory(usb_cam)
-- Configuring done
CMake Error at /usr/share/cmake-3.5/Modules/FindCUDA.cmake:1693 (add_executable):
Cannot find source file:
darknet/src/activation_layer.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
Call Stack (most recent call first):
darknet_ros/CMakeLists.txt:124 (cuda_add_executable)
CMake Warning (dev) at darknet_ros/CMakeLists.txt:153 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "my_package_generate_messages_cpp" of target
"yolo_ros" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at darknet_ros/CMakeLists.txt:152 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "my_package_generate_messages_cpp" of target
"single_image_test" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/roy/catkin_ws/build
Invoking "cmake" failed
HEY!
While I''m trying to compile your code with catkim_make, I'm taking this error :
Scanning dependencies of target single_image_test
[ 9%] Linking CXX executable /home/nvidia/ip_ws/devel/lib/darknet_ros/yolo_ros
[ 9%] Building CXX object darknet_ros/CMakeFiles/single_image_test.dir/src/single_image_test.cpp.o
/usr/bin/ld: cannot find -lopencv_dep_cudart
collect2: error: ld returned 1 exit status
darknet_ros/CMakeFiles/yolo_ros.dir/build.make:4557: recipe for target '/home/nvidia/ip_ws/devel/lib/darknet_ros/yolo_ros' failed
make[2]: *** [/home/nvidia/ip_ws/devel/lib/darknet_ros/yolo_ros] Error 1
CMakeFiles/Makefile2:1141: recipe for target 'darknet_ros/CMakeFiles/yolo_ros.dir/all' failed
make[1]: *** [darknet_ros/CMakeFiles/yolo_ros.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/nvidia/ip_ws/src/darknet_ros/src/single_image_test.cpp:26:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
char cfg = "/home/catkin_ws/src/darknet_ros/cfg/tiny-yolo-voc.cfg";
^
/home/nvidia/ip_ws/src/darknet_ros/src/single_image_test.cpp:27:17: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char *weights = "/home/catkin_ws/src/darknet_ros/weights/tiny-yolo-voc.weights";
^
[ 9%] Linking CXX executable /home/nvidia/ip_ws/devel/lib/darknet_ros/single_image_test
/usr/bin/ld: cannot find -lopencv_dep_cudart
collect2: error: ld returned 1 exit status
darknet_ros/CMakeFiles/single_image_test.dir/build.make:2900: recipe for target '/home/nvidia/ip_ws/devel/lib/darknet_ros/single_image_test' failed
make[2]: *** [/home/nvidia/ip_ws/devel/lib/darknet_ros/single_image_test] Error 1
CMakeFiles/Makefile2:1609: recipe for target 'darknet_ros/CMakeFiles/single_image_test.dir/all' failed
make[1]: *** [darknet_ros/CMakeFiles/single_image_test.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
Any idea?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.