{"action":"created","issue":{"url":"https://api.github.com/repos/AlexeyAB/darknet/issues/309","repository_url":"https://api.github.com/repos/AlexeyAB/darknet","labels_url":"https://api.github.com/repos/AlexeyAB/darknet/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/AlexeyAB/darknet/issues/309/comments","events_url":"https://api.github.com/repos/AlexeyAB/darknet/issues/309/events","html_url":"https://github.com/AlexeyAB/darknet/issues/309","id":282084335,"number":309,"title":"Error when training my custom object detector!","user":{"login":"ZhaoWangFu","id":9448146,"avatar_url":"https://avatars3.githubusercontent.com/u/9448146?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhaoWangFu","html_url":"https://github.com/ZhaoWangFu","followers_url":"https://api.github.com/users/ZhaoWangFu/followers","following_url":"https://api.github.com/users/ZhaoWangFu/following{/other_user}","gists_url":"https://api.github.com/users/ZhaoWangFu/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhaoWangFu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhaoWangFu/subscriptions","organizations_url":"https://api.github.com/users/ZhaoWangFu/orgs","repos_url":"https://api.github.com/users/ZhaoWangFu/repos","events_url":"https://api.github.com/users/ZhaoWangFu/events{/privacy}","received_events_url":"https://api.github.com/users/ZhaoWangFu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-12-14T12:29:18Z","updated_at":"2017-12-14T16:35:52Z","closed_at":null,"author_association":"NONE","body":"I want to train a hand detector using yolo2, so i cloned this repo and compiled it successfully on my PC(Win10 64bit, GTX1050, CUDA8.0, CUDNN6.0, Visual Studio 2015), Then i prepared labelled hand dataset (2000 images with resolution 1080x720) and split them as train(80%) and test(20%), i followed the instructions in README and use the darknet.exe to train the model, However, it stopped at once just after start the training! With no errors! Does it mean the training succedd?\r\n\r\n**Output**\r\n![image](https://user-images.githubusercontent.com/9448146/33991129-667486b2-e108-11e7-964f-bdcf95441ff1.png)\r\nwhat does \"seen 64\" mean?\r\n\r\n**Input**\r\nI put all input under darknet/build/darknet/x64/data, just as below:\r\n![image](https://user-images.githubusercontent.com/9448146/33991450-95b1c43e-e109-11e7-8080-cad7b84d2403.png)\r\n\r\n[obj] dir is training set, [test] dir is test set, it looks like:\r\n![image](https://user-images.githubusercontent.com/9448146/33991567-0473e4ba-e10a-11e7-91df-dc8f61ba57c8.png)\r\n\r\nlabels in each txt file was converted to yolo format, for example:\r\n\r\n> 0 0.576953125 0.6590277777777778 0.13359375 0.14305555555555555\r\n0 0.457421875 0.6291666666666667 0.09296875 0.16111111111111112\r\n\r\nI have only ONE classs: Hand, So my obj.names has only one line:\r\n![image](https://user-images.githubusercontent.com/9448146/33991848-4ecf04d0-e10b-11e7-8362-417828983cfd.png)\r\n\r\nAnd my obj.data:\r\n\r\n> classes= 1\r\ntrain  = data/train.txt\r\nvalid  = data/test.txt\r\nnames = data/obj.names\r\nbackup = backup/\r\n\r\nMy train.txt and test.txt looks:\r\n![image](https://user-images.githubusercontent.com/9448146/33991970-bf7ff072-e10b-11e7-9891-95fa8eb42ef5.png)\r\n\r\n**Models**\r\nI want to perform real hand detection on my PC, so i choose tiny-yolo, i copyed the /cfg/tiny-yolo.cfg to \r\n/data/tiny-yolo-hand.cfg and set classes= 1, filters = 30.\r\ntiny-yolo.weights is downloaded from [http://pjreddie.com/media/files/tiny-yolo.weights](url)\r\n\r\n`[net]\r\nbatch=64\r\nsubdivisions=8\r\nwidth=416\r\nheight=416\r\nchannels=3\r\nmomentum=0.9\r\ndecay=0.0005\r\nangle=0\r\nsaturation = 1.5\r\nexposure = 1.5\r\nhue=.1\r\n\r\nlearning_rate=0.001\r\nmax_batches = 120000\r\npolicy=steps\r\nsteps=-1,100,80000,100000\r\nscales=.1,10,.1,.1\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nfilters=16\r\nsize=3\r\nstride=1\r\npad=1\r\nactivation=leaky\r\n\r\n[maxpool]\r\nsize=2\r\nstride=2\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nfilters=32\r\nsize=3\r\nstride=1\r\npad=1\r\nactivation=leaky\r\n\r\n[maxpool]\r\nsize=2\r\nstride=2\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nfilters=64\r\nsize=3\r\nstride=1\r\npad=1\r\nactivation=leaky\r\n\r\n[maxpool]\r\nsize=2\r\nstride=2\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nfilters=128\r\nsize=3\r\nstride=1\r\npad=1\r\nactivation=leaky\r\n\r\n[maxpool]\r\nsize=2\r\nstride=2\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nfilters=256\r\nsize=3\r\nstride=1\r\npad=1\r\nactivation=leaky\r\n\r\n[maxpool]\r\nsize=2\r\nstride=2\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nfilters=512\r\nsize=3\r\nstride=1\r\npad=1\r\nactivation=leaky\r\n\r\n[maxpool]\r\nsize=2\r\nstride=1\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nfilters=1024\r\nsize=3\r\nstride=1\r\npad=1\r\nactivation=leaky\r\n\r\n###########\r\n\r\n[convolutional]\r\nbatch_normalize=1\r\nsize=3\r\nstride=1\r\npad=1\r\nfilters=1024\r\nactivation=leaky\r\n\r\n[convolutional]\r\nsize=1\r\nstride=1\r\npad=1\r\nfilters=30\r\nactivation=linear\r\n\r\n[region]\r\nanchors = 0.738768,0.874946,  2.42204,2.65704,  4.30971,7.04493,  10.246,4.59428,  12.6868,11.8741\r\nbias_match=1\r\nclasses=1\t\r\ncoords=4\r\nnum=5\r\nsoftmax=1\r\njitter=.2\r\nrescore=1\r\n\r\nobject_scale=5\r\nnoobject_scale=1\r\nclass_scale=1\r\ncoord_scale=1\r\n\r\nabsolute=1\r\nthresh = .6\r\nrandom=1`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AlexeyAB/darknet/issues/comments/351764273","html_url":"https://github.com/AlexeyAB/darknet/issues/309#issuecomment-351764273","issue_url":"https://api.github.com/repos/AlexeyAB/darknet/issues/309","id":351764273,"user":{"login":"ZhaoWangFu","id":9448146,"avatar_url":"https://avatars3.githubusercontent.com/u/9448146?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhaoWangFu","html_url":"https://github.com/ZhaoWangFu","followers_url":"https://api.github.com/users/ZhaoWangFu/followers","following_url":"https://api.github.com/users/ZhaoWangFu/following{/other_user}","gists_url":"https://api.github.com/users/ZhaoWangFu/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhaoWangFu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhaoWangFu/subscriptions","organizations_url":"https://api.github.com/users/ZhaoWangFu/orgs","repos_url":"https://api.github.com/users/ZhaoWangFu/repos","events_url":"https://api.github.com/users/ZhaoWangFu/events{/privacy}","received_events_url":"https://api.github.com/users/ZhaoWangFu/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T16:35:52Z","updated_at":"2017-12-14T16:35:52Z","author_association":"NONE","body":"one more question, should i change the width and height in cfg because input image is 1280*720?\r\nshould All image be the same size? Or do i have to resize the 1280*720 image to smaller size for faster speed? Thanks a lot!"}}
{"actor":{"display_login":"ZhaoWangFu"}}