{"action":"created","issue":{"url":"https://api.github.com/repos/tmbdev/ocropy/issues/5","repository_url":"https://api.github.com/repos/tmbdev/ocropy","labels_url":"https://api.github.com/repos/tmbdev/ocropy/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/tmbdev/ocropy/issues/5/comments","events_url":"https://api.github.com/repos/tmbdev/ocropy/issues/5/events","html_url":"https://github.com/tmbdev/ocropy/issues/5","id":48623290,"number":5,"title":"error while training","user":{"login":"stexandev","id":9717268,"avatar_url":"https://avatars.githubusercontent.com/u/9717268?v=3","gravatar_id":"","url":"https://api.github.com/users/stexandev","html_url":"https://github.com/stexandev","followers_url":"https://api.github.com/users/stexandev/followers","following_url":"https://api.github.com/users/stexandev/following{/other_user}","gists_url":"https://api.github.com/users/stexandev/gists{/gist_id}","starred_url":"https://api.github.com/users/stexandev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stexandev/subscriptions","organizations_url":"https://api.github.com/users/stexandev/orgs","repos_url":"https://api.github.com/users/stexandev/repos","events_url":"https://api.github.com/users/stexandev/events{/privacy}","received_events_url":"https://api.github.com/users/stexandev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2014-11-13T11:01:19Z","updated_at":"2016-12-30T12:36:42Z","closed_at":null,"body":"After executing  (on 156 files of groundtruth text and imagery):\n  ocropus-rtrain gt/????/*.png -F 10000 -o mub_combined &\nI've got the following reproduceable error: \n\n454 150.32 (1486, 48) gt/0001/01000b.bin.png\n   TRU: u'quod dicitur Fulda, quod est situm in pago Grapfeld, constructum in honore sancti'\n   ALN: u'quuod dicituur Fuulda, qquod et situumm in pagoo Grapfeld, construuctuuumm in honnore '\n   OUT: u' iiii ii te ti imm tm e iii eutmut m mi eii '\n# oops, got FloatingPointError overflow encountered in exp\nTraceback (most recent call last):\n  File \"/usr/local/bin/ocropus-rtrain\", line 228, in <module>\n    pcs = network.trainSequence(line,cs,update=do_update,key=fname)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 863, in trainSequence\n    self.outputs = array(self.lstm.forward(xs))\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 587, in forward\n    xs = net.forward(xs)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 636, in forward\n    outputs = [net.forward(xs) for net in self.nets]\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 545, in forward\n    self.WIP,self.WFP,self.WOP)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 419, in forward_py\n    go[t] = ffunc(gox[t])\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 367, in ffunc\n    return 1.0/(1.0+exp(-x))\nFloatingPointError: overflow encountered in exp\nTraceback (most recent call last):\n  File \"/usr/local/bin/ocropus-rtrain\", line 232, in <module>\n    network = ocrolib.load_object(last_save)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/common.py\", line 502, in load_object\n    fname = ocropus_find_file(fname)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/common.py\", line 680, in ocropus_find_file\n    if os.path.exists(fname):\n  File \"/usr/lib/python2.7/genericpath.py\", line 18, in exists\n    os.stat(path)\nTypeError: coercing to Unicode: need string or buffer, NoneType found\n## another case with half of the files (dir 0001 only):\n\n960 110.63 (1490, 48) gt/0001/010022.bin.png\n   TRU: u'in honorem\\u2074 domini salvatoris Jesu Christi et beate Marie genetricis\\u2075 eius episco-'\n   ALN: u'in honorem~ domini salvatoris Jesu Christi et beate MMarie genetricis eius episco-'\n   OUT: u'iu bouoreu ouiui salvatoris lesu  bristi et beate  arie geuetricis eius episoo-'\n# oops, got FloatingPointError overflow encountered in exp\nTraceback (most recent call last):\n  File \"/usr/local/bin/ocropus-rtrain\", line 228, in <module>\n    pcs = network.trainSequence(line,cs,update=do_update,key=fname)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 863, in trainSequence\n    self.outputs = array(self.lstm.forward(xs))\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 587, in forward\n    xs = net.forward(xs)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 636, in forward\n    outputs = [net.forward(xs) for net in self.nets]\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 619, in forward\n    return self.net.forward(xs[::-1])[::-1]\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 545, in forward\n    self.WIP,self.WFP,self.WOP)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 419, in forward_py\n    go[t] = ffunc(gox[t])\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/lstm.py\", line 367, in ffunc\n    return 1.0/(1.0+exp(-x))\nFloatingPointError: overflow encountered in exp\nTraceback (most recent call last):\n  File \"/usr/local/bin/ocropus-rtrain\", line 232, in <module>\n    network = ocrolib.load_object(last_save)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/common.py\", line 502, in load_object\n    fname = ocropus_find_file(fname)\n  File \"/usr/local/lib/python2.7/dist-packages/ocrolib/common.py\", line 680, in ocropus_find_file\n    if os.path.exists(fname):\n  File \"/usr/lib/python2.7/genericpath.py\", line 18, in exists\n    os.stat(path)\nTypeError: coercing to Unicode: need string or buffer, NoneType found\n"},"comment":{"url":"https://api.github.com/repos/tmbdev/ocropy/issues/comments/269767039","html_url":"https://github.com/tmbdev/ocropy/issues/5#issuecomment-269767039","issue_url":"https://api.github.com/repos/tmbdev/ocropy/issues/5","id":269767039,"user":{"login":"ChillarAnand","id":4463796,"avatar_url":"https://avatars.githubusercontent.com/u/4463796?v=3","gravatar_id":"","url":"https://api.github.com/users/ChillarAnand","html_url":"https://github.com/ChillarAnand","followers_url":"https://api.github.com/users/ChillarAnand/followers","following_url":"https://api.github.com/users/ChillarAnand/following{/other_user}","gists_url":"https://api.github.com/users/ChillarAnand/gists{/gist_id}","starred_url":"https://api.github.com/users/ChillarAnand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChillarAnand/subscriptions","organizations_url":"https://api.github.com/users/ChillarAnand/orgs","repos_url":"https://api.github.com/users/ChillarAnand/repos","events_url":"https://api.github.com/users/ChillarAnand/events{/privacy}","received_events_url":"https://api.github.com/users/ChillarAnand/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T12:36:42Z","updated_at":"2016-12-30T12:36:42Z","body":"Any updates on this issue? I am using all the defaults values except this code.\r\n\r\n```\r\n ఁంఃఅఆఇఈఉఊఋఌఎఏఐఒఓఔకఖగఘఙచఛజఝఞటఠడఢణతథదధనపఫబభమయరఱలళవశషసహఽాిుూృౄెేౘౙౠౡౢౣ౦౧౨౩౪౫౬౭౮౯\r\n```\r\n\r\nFor first 3K samples, everything went fine. After that 4 out of 10 samples are failing because of `FloatingPointError`. \r\n"}}
{"actor":{"display_login":"ChillarAnand"}}