swechhasingh / Handwriting-synthesis

Implementation of "Generating Sequences With Recurrent Neural Networks" https://arxiv.org/abs/1308.0850
MIT License
225 stars 31 forks source link

PSA: Tips to Getting This to Run #13

Open bryandam opened 1 year ago

bryandam commented 1 year ago

Just got this running (Aug 2023), had to wrangle some dependencies to get Flask 1.1.2 working, and figured I'd share here.

First, Flask 1.1.2 won't build/work on newer version of Python. I created a virtual environment using Python 3.7.9 to get Flask building.

Second, Flask 1.1.2 doesn't work with newer version of it's own dependencies so I installed the following versions before Flask. Merely adding these lines above Flask in the requirements file should work: Jinja2==3.0.3 itsdangerous==2.0.1 werkzeug==2.0.3

Lastly, I had to move the best_model_synthesis.pt from the X folder into results\synthesis to avoid a runtime error when generating text.

That allowed me to get it all working but while I'll test it some more I couldn't get it to match the accuracy of the demo video with the same inputs: image

Tombstone2K commented 1 year ago

I too would be interested in the same

jonathanmaxberman commented 11 months ago

I had similar issues getting it running.

I went back through the changelog and at one point the author deleted best_model_synthesis.pt, but moved it to best_model_synthesis3.pt.

If you make a copy with the name back to best_model_synthesis.pt, it seems to work again. At least a lot better than it did. It looks like the author may have stopped working on it, I wonder if there is a way to get attention to make the change?

handwriting