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

val_inpaint_model report error: InvalidArgumentError (see above for traceback): InCompatible shapes: [6,256,256,1] vs. [24,256,256,1] #7

Open
huangwenwenlili opened this issue Apr 30, 2021 · 2 comments

Comments

@huangwenwenlili
Copy link

When run val_input_model.py line 174 report this error. Why ???

@feathernox
Copy link

I had a similar problem when I had put images and masks of size 512 x 512 to model. While images were successfully resized to 256 x 256 by preprocessing procedure, masks were not, and uncommenting
https://github.com/YoungGod/sturcture-inpainting/blob/master/src/utils_fn.py#L212 helped.

@adnan-ahf
Copy link

hello, i converted the code using the tf_upgrade_v2 --infile inpaint_model.py --outfile inpaint_model_up.py but i still have a problem with the ecompatiility of tf.compat.v1.placeholder
i am gitteng this error
Iterating over a symbolic tf.Tensor is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.

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

3 participants