leggedrobotics / darknet_ros

YOLO ROS: Real-Time Object Detection for ROS
BSD 3-Clause "New" or "Revised" License
2.18k stars 1.18k forks source link

First section must be [net] or [network]: Resource temporarily unavailable #134

Open xueyingliu opened 5 years ago

xueyingliu commented 5 years ago

When I run "roslaunch darknet_ros yolo_v3.launch", I get the following error: `YOLO V3

First section must be [net] or [network]: Resource temporarily unavailable [darknet_ros-1] process has died [pid 11760, exit code 255, cmd /home/lxy/catkin_ws/devel/lib/darknet_ros/darknet_ros __name:=darknet_ros __log:=/root/.ros/log/a095e0cc-e6d7-11e8-913d-ec388f79d38c/darknet_ros-1.log]. log file: /root/.ros/log/a095e0cc-e6d7-11e8-913d-ec388f79d38c/darknet_ros-1*.log ` thanks for your help~

Gelolasi commented 5 years ago

I have the same problem!!!Did you solve it?

Gelolasi commented 5 years ago

The problem is: [darknet_ros-1] process has died [pid 18556, exit code -11, cmd /home/le/catkin_ws/devel/lib/darknet_ros/darknet_ros __name:=darknet_ros __log:=/home/le/.ros/log/a31ff670-5a68-11e9-8886-1831bf0f22e1/darknet_ros-1.log]. log file: /home/le/.ros/log/a31ff670-5a68-11e9-8886-1831bf0f22e1/darknet_ros-1*.log thanks~

XunshanMan commented 4 years ago

Hi, I met the same problem and solved it. Hope it helps.

The cause for me is the .cfg file. I compressed the source directory to transfer it to another computer. The zip software somehow changed all the files. When I used git diff it showed: image

those "^M" at the end of every lines made the .cfg file unreadable. so I used: git stash and compiled them again.

It solved.

tomlankhorst commented 4 years ago

@XunshanMan That's the CR (carriage return) character seen in Windows / MS-DOS systems as line ending (CR LF), whereas UNIX systems typically use (LF) as the new-line character.

This is a symptom of Git's autocrlf configuration to improve compatibility between Windows/UNIX systems.

I guess you copied between different platforms.

tomlankhorst commented 4 years ago

@xueyingliu Please check your config .cfg file. Post it if in doubt.

XunshanMan commented 4 years ago

@XunshanMan That's the CR (carriage return) character seen in Windows / MS-DOS systems as line ending (CR LF), whereas UNIX systems typically use (LF) as the new-line character.

This is a symptom of Git's autocrlf configuration to improve compatibility between Windows/UNIX systems.

I guess you copied between different platforms.

yeah... I compressed it on Win10, and uncompressed it on ubuntu. Learned something new, thank you.