Closed antoniouras closed 6 years ago
This could possibly be coming from the use of python 2.7
On 30-Jan-2018 00:37, "antoniouras" notifications@github.com wrote:
Dear developers, I find an error when running the simple example provided in the doc:
python get_hand.py -t "Homework could have been easier" -s 2 -c 0,0,200 -b 0.85
File "get_hand.py", line 51 print('.', end='') ^ SyntaxError: invalid syntax
Do you have any hint?
Best regards, Antonio
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/theSage21/handwritten/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AHVj0T-mR4XiW7vtwBhMCJ3qwayF5CfBks5tPhbfgaJpZM4RxMPf .
Thanks... is there anything I can do to overcome the problem?
You can install python 3.x That should take care of the problem.
On 31-Jan-2018 16:26, "antoniouras" notifications@github.com wrote:
Thanks... is there anything I can do to overcome the problem?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/theSage21/handwritten/issues/7#issuecomment-361897134, or mute the thread https://github.com/notifications/unsubscribe-auth/AHVj0RoZ0mugho6IVrjl-kfaUZzejEkvks5tQEbZgaJpZM4RxMPf .
Thanks, I've installed python3, now I get this message:
Traceback (most recent call last):
File "get_hand.py", line 5, in
Shall I install anything else?
Thanks, now the script starts doing its job! However, I still don't manage to get the output figure:
...... Creating images folder Starting handwriting generation
0 - Homework could have been easier.Traceback (most recent call last):
File "get_hand.py", line 111, in
The file images/0.png is created, but it is not readable. Am I missing something?
Hmm. I haven't faced this before.
If it can help, I work on Mac Sierra 10.12.6...
Are you able to open it with some kind of image viewer?
No... the message is always that the file is damaged or corrupted.
In that case it's probably not getting written properly. I last verified this before the code was updated for color. Can @ritiek help out?
Sorry, I am a bit busy at the moment. I'll investigate more on this soon.
BTW, I think this is a problem with saving the generated image locally (and not with color option, I guess). @antoniouras Can you try running the same command but replacing color option with -c 0,0,0
?
Hello, sorry for the delay! Thanks for the suggestion, I've tried with the -c 0,0,0 option and I have the following output messages:
Starting handwriting generation 0 - Homework could have been easier.|
Apparently, no error message this time. However, the output file is still not readable (file damaged). I'm attaching it to the this message, in case it could be useful. Here it is:
Is it just me or is something wrong with http://www.cs.toronto.edu/~graves/handwriting.cgi (does not generate handwriting anymore)?
I haven't checked. It might have gone down.
I confirm, the http://www.cs.toronto.edu/~graves/handwriting.cgi generator doesn't work...
Hmm. I don't have a free server right now to host the actual neural net. I've mailed Graves about this. Let's see what turns up. Otherwise we could write a small net and put it in this repo, thereby eliminating the network calls.
Hi, I have the same problem than @antoniouras the png is corrupted. I'm on PC, windows 8 with python 3.6.4 I was a fan of Graves website and was really happy to find out you did a easy usable version it's a great idea ! Hope you can find a fix, good luck.
Since Graves' site is down and there has been no reply so far to queries; I've created a free heroku app for now. It's slow but it gets the job done. I haven't tested for full backward compatibility though so @fleuryfontaine and @antoniouras, you might want to open new issues regarding the new server.
Go easy on it though :smile: it isn't a big machine.
Dear developers, I find an error when running the simple example provided in the doc:
python get_hand.py -t "Homework could have been easier" -s 2 -c 0,0,200 -b 0.85
File "get_hand.py", line 51 print('.', end='') ^ SyntaxError: invalid syntax
Do you have any hint?
Best regards, Antonio