thaines / helit

My machine learning/computer vision library for all of my recent papers, plus algorithms that I just like.
332 stars 149 forks source link

cost_proxy error on Handwriting synthesis generate #4

Closed lukemunn closed 7 years ago

lukemunn commented 7 years ago

Hey there,

This looks like a really interesting project. I've managed to get it compiled on Mac OSX, the line graph viewer works well, the HST main functions perfectly, but when I hit generate, I get the following error:

Starting generation... L1::Selecting Glyphs... Traceback (most recent call last): File "/Users/lukeandkimberlee/helit/handwriting/hst/hst.py", line 613, in __generate glyph_list = select_glyphs_dp(txt[i], self.glyph_db, fetch_count, match_strength, wrong_place_cost, space_mult, cfunc, True) File "/Users/lukeandkimberlee/helit/handwriting/hst/generate.py", line 133, in select_glyphs_dp cost[j,i] = mult * cost_func(left, right) File "/Users/lukeandkimberlee/helit/handwriting/hst/costs.py", line 93, in end_dist_cost_rf cost_proxy = frf.load_forest('cost_proxy.rf') File "/Users/lukeandkimberlee/helit/handwriting/hst/frf/frf.py", line 43, in load_forest f = bz2.BZ2File(fn, 'r') IOError: [Errno 2] No such file or directory: 'cost_proxy.rf'

There is no cost_proxy.rf in the 'hst' directory. Do I have to run one of the python files to generate it first, or am I missing something here?

BTW I'm using the twin_older fineliner line graph to test with if that matters.

lukemunn commented 7 years ago

Ah hadn't downloaded the Random Forest models from the homepage. A couple lines in the Github readme would be helpful I think, just so others can know which files to download and where to unzip them to.