-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STB Reason: can't fopen #174
Comments
|
I found the solution. My .txt file for the corresponding images was Infinite Infinite Infinite Infinite. Therefore, it wasn't working |
you also can compile the darknet with opencv on (opencv=1) then this problem will be solved |
@deepkshikha when training you should use this format
Example:
The
Since you are not linking to any data file it is using some default test scenario from the source code and that seems to course your error. |
@deepkshikha I'm not sure what you are trying to do exactly or what the new error you have is? But if you follow the guide on https://pjreddie.com/darknet/yolo/ you will most definitely be able to get training running. If you want to use your own dataset I can recommend this guide https://timebutt.github.io/static/how-to-train-yolov2-to-detect-custom-objects/ |
Sorry for the above comment I actually wrongly put the same comment here are the error that I am getting ubuntu@ip-172-30-6-221:~/darknet$ ./darknet detector train cfg/crater.data cfg/yolo-voc.cfg darknet_448.conv.22 |
I am trying on my own dataset only |
Can you try to run the examples from https://pjreddie.com/darknet/yolo/ Detection Using A Pre-Trained Model if that works out, then you should try to train using voc also following the guide on the website and if that works there are something wrong with your custom data. |
Thanks for response ...start training with our own data
http://guanghan.info/blog/en/my-works/train-yolo/ ... below is the error
I am getting
…On Thu, Nov 9, 2017 at 2:41 PM, Mike Røntved ***@***.***> wrote:
Can you try to run the examples from https://pjreddie.com/darknet/yolo/ *Detection
Using A Pre-Trained Model* if that works out, then you should try to
train using voc also following the guide on the website and if that works
there are something wrong with your custom data.
Report back if you get stuck.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMkuQc4lytfxW0RlXngXWCcuB8zMSjxmks5s0sGrgaJpZM4PFgjH>
.
|
You didn't post any error @deepkshikha |
Hey
I have added the image file . I am trying this
http://guanghan.info/blog/en/my-works/train-yolo/
I run "./darknet train cfg/crater.data cfg/yolo.cfg
extraction.conv.weights" and I get a Segmentation Fault(core-dumped).
I'm using:
This is the configuration I am using
GPU=1
CUDNN=1
OPENCV=0
DEBUG=1
…On Fri, Nov 10, 2017 at 1:06 PM, Mike Røntved ***@***.***> wrote:
You didn't post any error @deepkshikha <https://github.com/deepkshikha>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMkuQZeJytReQccSmLQ-k5ZPRjNLG7Kaks5s0_0KgaJpZM4PFgjH>
.
|
If you can't run the example or the guide above then there is something wrong with your libraries, try to reinstall cuda. |
Training has done But after training its not predicting any boundary box
for test image . Its appearing as below
…On Fri, Nov 10, 2017 at 2:56 PM, Mike Røntved ***@***.***> wrote:
If you can't run the example or the guide above then there is something
wrong with your libraries, try to reinstall cuda.
Also I see you are missing CUDA=1 in your configuration, you need this to
be able to use CUDNN flag.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMkuQVtsdnMVwwnwOCfR3ePvuuzmDFLGks5s1BbAgaJpZM4PFgjH>
.
|
It might be useful to share my experience, I run the command cat -v train.txt /Images/000/ZT135_15_A_4_75001000.jpg^M I removed the ^M by the following command So, when you are moving from windows to mac or vice versa take care for the carriage return and new line here is the comment which helped me "Shai3 months 14 days ago I thought that would be helpful since it consumed my time!!
|
I had the same issue commented by @SteveIb but the tr command didn't work for me on Mac OS. :set fileformat=unix And save the file. |
can i train the dataset on cpu alone |
yes @varen27 make changes in makefile cuda and CudNn to 0 and run but it will take longer time |
@deepkshikha they were already 0 but still I am facing this error |
What error you are getting. I have trained on both successfully
…On Thursday, June 14, 2018, Varen Aggarwal ***@***.***> wrote:
@deepkshikha <https://github.com/deepkshikha> they were already 0 but
still I am facing this error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMkuQZRUShyI97skmKYQqsDyzAGxSvC9ks5t8c6MgaJpZM4PFgjH>
.
|
@deepkshikha it shows this and then program terminates. |
Please check the path of images directory in train.txt and test.txt . This
is not CPU error This is coming because image is not able to upload please
check path and opencv is installed or not properly and able to import. Then
if it doesn't run check image.c
…On Thursday, June 14, 2018, Varen Aggarwal ***@***.***> wrote:
@deepkshikha <https://github.com/deepkshikha>
Loading weights from darknet19_448.conv.23...Done!
Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005
Resizing
384
Cannot load image "/data/obj/pic18.JPG"
STB Reason: can't fopen
it shows this and then program terminates.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMkuQePMtFd4IPioXFnALORqe4vd_WxFks5t8ipxgaJpZM4PFgjH>
.
|
Since I'm training on CPU do in need to install Cuda ?
…On Thu 14 Jun, 2018, 3:46 PM Deepshikha, ***@***.***> wrote:
Please check the path of images directory in train.txt and test.txt . This
is not CPU error This is coming because image is not able to upload please
check path and opencv is installed or not properly and able to import. Then
if it doesn't run check image.c
On Thursday, June 14, 2018, Varen Aggarwal ***@***.***>
wrote:
> @deepkshikha <https://github.com/deepkshikha>
> Loading weights from darknet19_448.conv.23...Done!
> Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005
> Resizing
> 384
> Cannot load image "/data/obj/pic18.JPG"
> STB Reason: can't fopen
>
> it shows this and then program terminates.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#174 (comment)>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AMkuQePMtFd4IPioXFnALORqe4vd_WxFks5t8ipxgaJpZM4PFgjH
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADhi9AHkXisXupIaTAQpKbC979sqwbwzks5t8jfngaJpZM4PFgjH>
.
|
@varen27 no, also if you don't have an nvidia gpu you can't install cuda. |
No need to install cuda opencv is need to install only
…On Friday, June 15, 2018, Varen Aggarwal ***@***.***> wrote:
Since I'm training on CPU do in need to install Cuda ?
On Thu 14 Jun, 2018, 3:46 PM Deepshikha, ***@***.***> wrote:
> Please check the path of images directory in train.txt and test.txt .
This
> is not CPU error This is coming because image is not able to upload
please
> check path and opencv is installed or not properly and able to import.
Then
> if it doesn't run check image.c
>
> On Thursday, June 14, 2018, Varen Aggarwal ***@***.***>
> wrote:
>
> > @deepkshikha <https://github.com/deepkshikha>
> > Loading weights from darknet19_448.conv.23...Done!
> > Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005
> > Resizing
> > 384
> > Cannot load image "/data/obj/pic18.JPG"
> > STB Reason: can't fopen
> >
> > it shows this and then program terminates.
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#174 (comment)
>,
> > or mute the thread
> > <
> https://github.com/notifications/unsubscribe-auth/
AMkuQePMtFd4IPioXFnALORqe4vd_WxFks5t8ipxgaJpZM4PFgjH
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#174 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
ADhi9AHkXisXupIaTAQpKbC979sqwbwzks5t8jfngaJpZM4PFgjH>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMkuQciLH8ALRfo9SYwaDGXh8VNA-cxFks5t80OYgaJpZM4PFgjH>
.
|
@deepkshikha thanks i was able to start training but i can make sense of the output. Could you please help me out: 50: nan, nan avg loss, 0.000000 rate, 518.781077 seconds, 3200 images |
What are the image folder and annotation looks like make sure it's correct. There should be few nan but since in all case your getting nan There is some error in dataset
…On Tue, Jun 19, 2018, 9:11 AM Varen Aggarwal ***@***.***> wrote:
@deepkshikha <https://github.com/deepkshikha> thanks i was able to start
training but i can make sense of the output. Could you please help me out:
50: nan, nan avg loss, 0.000000 rate, 518.781077 seconds, 3200 images
Resizing
480 x 480
Loaded: 14.141070 seconds
Region 82 Avg IOU: nan, Class: -nan, Obj: nan, No Obj: nan, .5R: 0.000000,
.75R: 0.000000, count: 29
Region 94 Avg IOU: nan, Class: nan, Obj: -nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 34
Region 106 Avg IOU: -nan(ind), Class: -nan(ind), Obj: -nan(ind), No Obj:
nan, .5R: -nan(ind), .75R: -nan(ind), co
Region 82 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 9
Region 94 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 60
Region 106 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 81
Region 82 Avg IOU: nan, Class: -nan, Obj: nan, No Obj: nan, .5R: 0.000000,
.75R: 0.000000, count: 26
Region 94 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 32
Region 106 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 9
Region 82 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 57
Region 94 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 69
Region 106 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 4
Region 82 Avg IOU: nan, Class: nan, Obj: nan, No Obj: nan, .5R: 0.000000,
.75R: 0.000000, count: 47
Region 94 Avg IOU: nan, Class: nan, Obj: -nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 48
Region 106 Avg IOU: nan, Class: nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 7
Region 82 Avg IOU: nan, Class: -nan, Obj: nan, No Obj: nan, .5R: 0.000000,
.75R: 0.000000, count: 35
Region 94 Avg IOU: nan, Class: -nan, Obj: nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 52
Region 106 Avg IOU: nan, Class: -nan, Obj: nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 1
Region 82 Avg IOU: nan, Class: nan, Obj: nan, No Obj: nan, .5R: 0.000000,
.75R: 0.000000, count: 52
Region 94 Avg IOU: nan, Class: nan, Obj: -nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 37
Region 106 Avg IOU: nan, Class: nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 90
Region 82 Avg IOU: nan, Class: -nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 14
Region 94 Avg IOU: -nan, Class: -nan, Obj: nan, No Obj: -nan, .5R:
0.000000, .75R: 0.000000, count: 26
Region 106 Avg IOU: nan, Class: nan, Obj: -nan, No Obj: nan, .5R:
0.000000, .75R: 0.000000, count: 1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#174 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMkuQZ3EJj0g5ekTsGAdTj7HGvmWJAigks5t-HMEgaJpZM4PFgjH>
.
|
The first thing you should check is that you have permission to edit/read the files necessary. To check the permissions of files in the current directory use the command To allow access to these files use the command Changing the files to include the absolute path worked on for me on a Mac. However, it did not solve the issue on Windows. On Windows, I was running into the same error and the issue turned out to be the end of line sequences. Make sure that the end of line sequences are "/n" and not "/r/n". In a text editor (like visual studio code) make sure you have LF and not CRLF and also that the file format is UTF8. Side Note: I also switched to this version of dark net https://github.com/pengdada/darknet-win-linux as it worked better on Linux. |
hey |
@LolikaPadmanbhan check the path of kite.jpg in your system |
@deepkshikha hey solved it.. it has to be data/kite.jpg i was missing that data/. now am able to run.. |
hey,i met the problem when make the project like the following: How to fix that?Help me! |
when run on GPU, |
when on GPU, I modified Makefile like this no errors when makeing YOLOv3. Loading weights from darknet53.conv.74...Done! HELP ME! |
@TingtingAlice You forgot to put https://github.com/pjreddie/darknet/tree/master/data/labels data/labels so that error is coming |
@romass12 You also forgot to pu https://github.com/pjreddie/darknet/tree/master/data/labels data/labels folder |
Now I am trying to calculate anchors But i am getting : But , i have already installed opencv via brew (2.4) with python 2.7
|
i have the same problems as @SteveIb ,it's really help me. |
@SteveIb help me a lot ,thx. from Windows to Ubuntu or other unix-like system, please not forget to convert '\r\n' to '\n'! |
Can anyone post the output obtained on training? |
Hi ... cfg/obj.data cfg/obj.names cfg/yolo-obj.cfg data/train.txt data/test.txt data/obj/all_images But at the time of training after few iterations it is searching for one file (data/obj/labels.txt) which is not there in the list.No image file named with labels.jpg and also no labels.txt is available. Sometimes it is searching for labels(2).txt or labels(3).txt.. I don’t have any idea from where it is getting this file name. Please help....I have attached the screen shot of my console. @TheMikeyR @deepkshikha Please have a look. |
|
I'm using Ubuntu but still get the same error. |
I am getting the following error for some images (custom dataset) as a result of which the training stops.
My images are present in the location too and their corresponding text files are in the following location: The format of the folders are like Pascal VOC here's a part of the makefile: And here's my ground.data:
Here's the command I am using:
Here's how my ground_train.txt (has all absolute path for images. only a portion of the entire file is shown) looks :
All the files exists and are valid. I am not sure what's wrong. It works for other files in the training dataset but only stops for these. I checked whether the images are of correct format, and they seem ok. |
Here's the output after 14 epochs, my training stops after this:
|
any luck? |
I am getting the same issue #1532 .Please help me with this @saipraneethd @jinyu121 @feiyunzhang @deepkshikha @TheMikeyR |
I am using colab to generate the files. Is it alright or I should still do some conversion? Thanks for your help in advance. @sachindesh |
Solved !!! |
how do I do that please? |
You have to try
|
In my case, the error was solved by creating text file that contains names of .jpg files. For that, goto the directory that contains images. And then type "ls > labels.list" to create a text file. Now give absolute path to the image in this text file. Use this file to train image. The problem is with the text file that contains path to image. |
Thank you very very much for the solution!!!!! |
I am training Darknet YOLO on Amazon EC2, p2.xlarge instance
Kindly help me with this error
My Makefile
GPU=1
CUDNN=1
OPENCV=0
OPENMP=0
DEBUG=0
Command used
./darknet detector train data/obj.data yolo-obj.cfg darknet19_448.conv.23
The text was updated successfully, but these errors were encountered: