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

has an _output_shapes attribute inconsistent with the GraphDef for output #3: Dimension 0 in both shapes must be equal, but are 0 and 1. Shapes are [0] and [1]. #85

Open
FANzhaoxin666 opened this issue Nov 10, 2021 · 8 comments

Comments

@FANzhaoxin666
Copy link

image
Uploading image.png…

Hi! I can't load the pre-trained model. Can you help me?

@TimoBolkart
Copy link
Owner

Can you please give more details, why you cannot download the pre-trained model?

@FANzhaoxin666
Copy link
Author

Can you please give more details, why you cannot download the pre-trained model?
Thanks.
I didn't make any changes of the source code except that I use tensorflow 2.4.0. My GPU is 3090, there are I must use cuda11 we tensorflow 2.4.0
I import tensorflow like:

import tensorflow.compat.v1 as tf
tf.enable_resource_variables()
tf.disable_v2_behavior()

However, the pretrained model can't be load. I suspect it is the tensorflow version caused the problem.

@zhanchao019
Copy link

Can you please give more details, why you cannot download the pre-trained model?
Thanks.
I didn't make any changes of the source code except that I use tensorflow 2.4.0. My GPU is 3090, there are I must use cuda11 we tensorflow 2.4.0
I import tensorflow like:

import tensorflow.compat.v1 as tf tf.enable_resource_variables() tf.disable_v2_behavior()

However, the pretrained model can't be load. I suspect it is the tensorflow version caused the problem.

You can use nvidia-tensorflow to run tf 1.x on 30series

@avacaondata
Copy link

Tensorflow always causes problems, it would be great to migrate this to PyTorch.

@sunkymepro
Copy link

I also meet the same question. I use tensorflow 2.7.2, my GPU is 3090, cuda is 11.2.
Have you ever solve this problem?

@Langwenchong
Copy link

I also meet this question,have you ever solve this problem now?

@Hello-hubKing
Copy link

Can you please give more details, why you cannot download the pre-trained model?

I download the pre-trained model,but meet this question

@Hello-hubKing
Copy link

Can you please give more details, why you cannot download the pre-trained model?
Thanks.
I didn't make any changes of the source code except that I use tensorflow 2.4.0. My GPU is 3090, there are I must use cuda11 we tensorflow 2.4.0
I import tensorflow like:

import tensorflow.compat.v1 as tf tf.enable_resource_variables() tf.disable_v2_behavior()

However, the pretrained model can't be load. I suspect it is the tensorflow version caused the problem.

have you solve this problem ?

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

7 participants