Replies: 2 comments
-
Hello all, nobody any idea? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is the exact error I receive: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am trying to deploy my model on Gradio but i get this error: ValueError: Cannot process this value as an Image, it is of type: <class 'torch.Tensor'>
I have pulled the data from PyTorch but it does not come as the foodvision images.
For prediction I have managed to pull images from the dataset and predict on them, but when trying to put the predict function on the gr.Interface I get the error mentioned above.
This is the code for the predict function:


And this is the predict function used for predicting on image in dataset:


Downloading datasets and creating dataloaders:


What am I missing, how should I proceed?
Any help or idea is welcomed, I have 20 tabs opened to find a solution for this :(
Beta Was this translation helpful? Give feedback.
All reactions