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

matrix missmatch when using own data #8

Closed
segoby opened this issue Sep 15, 2018 · 2 comments
Closed

matrix missmatch when using own data #8

segoby opened this issue Sep 15, 2018 · 2 comments

Comments

@segoby
Copy link

segoby commented Sep 15, 2018

When I try to train t a model with my handwriting, I works. But when I try to detect an image, I always get:

InvalidArgumentError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Assign requires shapes of both tensors to match. lhs shape= [1,1,512,50] rhs shape= [1,1,512,47]
         [[Node: save/Assign_17 = Assign[T=DT_FLOAT, _class=["loc:@Variable_5"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](Variable_5/RMSProp_1, save/RestoreV2:17)]]

I do not understand why the tensros do not match :(

@githubharald
Copy link
Owner

githubharald commented Sep 16, 2018

for some reason batch size is 47 - did you change this value (it originally was set to 50)?

@segoby
Copy link
Author

segoby commented Sep 16, 2018

I had only about 100 examples of my handwriting, so I changed some values. After I reset git, it works.

Sorry for the inconvenience.

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