Skip to content

Image classification/"cannot set tensor: got value of type uint8 but expected type float32 for input 0, name: input_1 " #41

Description

@Adesoji1

I am trying to expose my tflite image classification to web API but I keep getting the error message from fast API which says detail": "cannot set tensor: got value of type uint8 but expected type float32 for input 0, name: input_1 ". in addition, attached are the files for my web API, please how do I correct this sir, I believe there is something wrong in the codes.
Details for reproducing is found in step.txt
issue.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions