How can I use my own image?
Wisgon opened this issue · 1 comments
Wisgon commented
In /local/Bootstrap/test_model_accuracy.ipynb forth block: train_features, texts = load_data(dir_name)
The image data had been preprocess , it's not a raw image. I want to know how can I preprocess my raw image to the feature that can input into the model?
Can you show me the code to preprocess a raw image file? Thanks.
emilwallner commented
Yes, you can find it here: https://github.com/tonybeltramelli/pix2code/blob/master/model/classes/Utils.py