-
Notifications
You must be signed in to change notification settings - Fork 252
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
How to convert this model to inpaint gray picture #86
Comments
I try to inpaint some gray pics(with 1 channel not 3), and I costom the VGG16 model(change the input shape) and use my weight instead of 'Imagenet' because of the channel num. And the problem is that when the code goes to |
Error Message Breakdown Placeholder tensor 'outputs_img_target' with dtype float and shape [?,?,?,?]: Placeholder tensor: In TensorFlow, a placeholder is essentially a variable that you will assign data to at a later point. It allows you to create operations and build your computation graph, without needing the data. In TensorFlow 2.x, placeholders are less commonly used directly, as the eager execution mode tends to be the default behavior, which does not require placeholders in the same way TensorFlow 1.x did. Possible Causes and Solutions Model Architecture/Execution Mismatch: Ensure that the way you're attempting to use the model matches its intended architecture. If the model expects an image target for training or inference, you need to supply this in the correct format. Version Mismatch: If you're translating code from TensorFlow 1.x to 2.x (or vice versa), be aware that their handling of placeholders and execution models are quite different. TensorFlow 2.x encourages the use of eager execution and tf.data pipelines for data feeding, moving away from the explicit use of placeholders. Next Steps Review Model Code: Look at the model's documentation or code comments to understand the expected format and contents of outputs_img_target. Debugging and Testing: Simplify your code to a minimal example that still produces the error, which can often reveal where things are going wrong. Let me know if this helps! |
No description provided.
The text was updated successfully, but these errors were encountered: