Darknet: STB Reason: can't fopen

Created on 7 Aug 2018  Â·  5Comments  Â·  Source: pjreddie/darknet

I am training Darknet YOLO-V3 on Amazon EC2, p2.xlarge instance
Kindly help me with this error.

I am trying run below command. When I run below command, every time I get error for different file. So, I am not sure if there is issue with one file or few files or all files.

./darknet detector train cfg/voc.data cfg/yolov3-voc.cfg darknet53.conv.74

I have only one class = Groundnut

.
.
.
99 conv 128 1 x 1 / 1 52 x 52 x 384 -> 52 x 52 x 128 0.266 BFLOPs
100 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BFLOPs
101 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BFLOPs
102 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BFLOPs
103 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BFLOPs
104 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BFLOPs
105 conv 18 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 18 0.025 BFLOPs
106 yolo
Loading weights from darknet53.conv.74...Done!
Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005
Resizing
512
"annot load image "/home/ubuntu/yolov3/darknet/Marakhi/Training-groundnut/152.jpg

Most helpful comment

I found the issue. I have created .txt files in windows and then moved them to EC2 instance. I forgot to convert .txt file to UNIX format. You can use dos2unix command.

I have converted all the .txt file in directory using below command(for bulk conversion).

find . -type f -name "*.txt" -print0 | xargs -0 dos2unix

All 5 comments

I found the issue. I have created .txt files in windows and then moved them to EC2 instance. I forgot to convert .txt file to UNIX format. You can use dos2unix command.

I have converted all the .txt file in directory using below command(for bulk conversion).

find . -type f -name "*.txt" -print0 | xargs -0 dos2unix

Ah yes. Be careful with LF/CR (Windows) vs LF(Unix) in your cfg file too.
That has bit me on occasion.

On Tue, Aug 7, 2018 at 3:22 PM marakhi notifications@github.com wrote:

I found the issue. I have created .txt files in windows and then moved
them to EC2 instance. I forgot to convert .txt file to UNIX format. You can
use dos2unix command.

I have converted all the .txt file in directory using below command(for
bulk conversion).

find . -type f -name "*.txt" -print0 | xargs -0 dos2unix

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pjreddie/darknet/issues/1027#issuecomment-411222082,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARocJREkrWsXG9kMsLdN9vTuokrgxBk4ks5uOhMWgaJpZM4VxWrh
.

>

Peter Quinn
(415) 794-2264 (cell)

I am getting the same issue https://github.com/pjreddie/darknet/issues/1532 .Please help me with this
@marakhi @PeterQuinn925 @pjreddie @Broham @daokouer

I am getting the same issue #1532 .Please help me with this
@marakhi @PeterQuinn925 @pjreddie @Broham @daokouer

I'm getting the same issue on Windows with Ubuntu bash.

hi I tried the above command. Does it convert and create a new file with same name? it still doesn't work for me a I didn't change the .txt file path or name in .data file.

Was this page helpful?
0 / 5 - 0 ratings