Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is test and training data format different. #19

Open
tejakundaikar opened this issue Mar 6, 2021 · 3 comments
Open

Is test and training data format different. #19

tejakundaikar opened this issue Mar 6, 2021 · 3 comments

Comments

@tejakundaikar
Copy link

Request to provide a sample test data format

@jvdzwaan
Copy link
Collaborator

The data format is specified in the README and should be the same for training and test.

@tejakundaikar
Copy link
Author

Thank you for you reply

I have given the test data using following
python3 -m ochre.lstm_synced_correct_ocr model/0.1861-40.hdf5 gs.json ocr.json
Here ocr.json file contains data in format { "ocr":["\u2018", "\u0930", "\u0947", "\u0921", "\u093f", "\u092f", "\u094b"]}

Further I tried to give test data using txt files.
python3 -m ochre.lstm_synced_correct_ocr model/0.1861-40.hdf5 gs.txt ocr.txt

In both ways I am getting the below error
ValueError: Input 0 is incompatible with layer sequential: expected shape=(None, None, 171), found shape=[None, 25, 3825]

Can you please help me to give test data to the model.

@jvdzwaan
Copy link
Collaborator

My guess is that the error is due to updates in the dependencies and not necessarily to problems with the data. This can be expected from software that isn't actively being developed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants