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

I am getting issue while Inferencingmodel #15

Open
yashsoulpage opened this issue Sep 3, 2024 · 0 comments
Open

I am getting issue while Inferencingmodel #15

yashsoulpage opened this issue Sep 3, 2024 · 0 comments

Comments

@yashsoulpage
Copy link

ValueError: Exception encountered when calling TFViTModel.call().

All operation outputs must be tensors. Operation returned a non-tensor. Non-tensor received: TFBaseModelOutputWithPooling(last_hidden_state=<tf.Tensor 'vit_1/layernorm_1/add_2:0' shape=(None, 197, 768) dtype=float32>, pooler_output=<tf.Tensor 'vit_1/pooler_1/dense_1/Tanh:0' shape=(None, 768) dtype=float32>, hidden_states=None, attentions=None)

Arguments received by TFViTModel.call():
• args=('<KerasTensor shape=(None, 3, 224, 224), dtype=float32, sparse=None, name=keras_tensor_74>',)
• kwargs={'training': 'False'}

with this requirements:
Flask == 1.0.2
Pillow == 7.2.0
loguru == 0.5.3
matplotlib == 3.1.1
numpy == 1.19.5
pandas
scikit-learn
tensorflow == 2.8.0
tqdm == 4.64.0
transformers == 4.18.0
python== 3.10

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

1 participant