Giter Site home page Giter Site logo

Comments (8)

doxuanhieu185 avatar doxuanhieu185 commented on April 27, 2024 1

Hey friend, please wait, I believe good things will come to you.

from tensorflow.

pkgoogle avatar pkgoogle commented on April 27, 2024 1

Hi @VanBap, in your notebook you do not specify a specific input_shape in the API: https://keras.io/api/applications/resnet/#resnet50-function, Resizing the converted input shape is actually expected: https://www.tensorflow.org/lite/guide/inference#run_inference_with_dynamic_shape_model, so given your parameters, I believe resizing is the correct action. Does that answer your concerns? Thanks.

from tensorflow.

VanBap avatar VanBap commented on April 27, 2024

anyone? :(

from tensorflow.

pkgoogle avatar pkgoogle commented on April 27, 2024

Hi VanBap, can you upload your .h5 and .tflite file? That will help me test this faster.

from tensorflow.

VanBap avatar VanBap commented on April 27, 2024

Hi VanBap, can you upload your .h5 and .tflite file? That will help me test this faster.

I cant upload model files here because they are >25MB even though I zipped those.
But they are on my Github:

By the way when I try to run model .tflite, I just put a new line code:
" # Resize Tensor Shape
interpreter.resize_tensor_input(input_details[0]['index'], (1, 224, 224, 3)) "
then it finally ran but I dont really know (how) does it affect the way my model .tflite processing ?!

from tensorflow.

VanBap avatar VanBap commented on April 27, 2024

Hi @VanBap, in your notebook you do not specify a specific input_shape in the API: https://keras.io/api/applications/resnet/#resnet50-function, Resizing the converted input shape is actually expected: https://www.tensorflow.org/lite/guide/inference#run_inference_with_dynamic_shape_model, so given your parameters, I believe resizing is the correct action. Does that answer your concerns? Thanks.

I really appreciate your help! I am trying your answer and will feed back when its done

from tensorflow.

VanBap avatar VanBap commented on April 27, 2024

Hi @VanBap, in your notebook you do not specify a specific input_shape in the API: https://keras.io/api/applications/resnet/#resnet50-function, Resizing the converted input shape is actually expected: https://www.tensorflow.org/lite/guide/inference#run_inference_with_dynamic_shape_model, so given your parameters, I believe resizing is the correct action. Does that answer your concerns? Thanks.

Hi pkgoogle, I just want to feedback that I have tried your answer and my model ran properly. Thank u so much. I really appreciate it!

from tensorflow.

pkgoogle avatar pkgoogle commented on April 27, 2024

Hi @VanBap, no worries, if you have no more open items, please feel free to close as completed. Thanks.

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.