Comments (8)
Hey friend, please wait, I believe good things will come to you.
from tensorflow.
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.
anyone? :(
from tensorflow.
Hi VanBap, can you upload your .h5 and .tflite file? That will help me test this faster.
from tensorflow.
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:
- model .tflite: https://github.com/VanBap/Adverse_Weather/tree/master/saved_model
- training model .h5: https://github.com/VanBap/Adverse_Weather/blob/master/Detection_model_usingResNet50.ipynb
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.
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.
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.
Hi @VanBap, no worries, if you have no more open items, please feel free to close as completed. Thanks.
from tensorflow.
Related Issues (20)
- Import msvcp140.dll and msvcp140_1.dll from a custom location
- does pluggable custom device support distributed runtime?
- Segmentation fault in `tf.config.experimental_connect_to_cluster` with `@tf.function` HOT 1
- tf.custom_gradient silently fails when using all keyword arguments HOT 3
- It is unclear how a user should configure LD_LIBRARY_PATH after pip install tensorflow[and-cuda]
- `Check failed` in `tf.raw_ops.TensorListSplit` when the values of `element_shape` are too large.
- `Overflow` in `tf.compat.v1.nn.ctc_loss` and `tf.compat.v1.nn.ctc_loss_v2` when there are too large values in `labels`. HOT 1
- `Overflow` in `tf.raw_ops.SparseReduceMaxSparse` when there are too large values in `input_shape`.
- `Check failed` in `tf.linalg.diag` HOT 1
- `Assertion failure` in `tf.signal.inverse_stft` when the value of `frame_length` is too large.
- `Check failed` in `tf.raw_ops.GatherV2` when the value of `axis` is too large. HOT 1
- `Overflow` in `tf.raw_ops.SparseReduceSumSparse` when there are too large values in `input_shape`.
- cl 命令行 无法打开 calibration_statistics_collector_average_min_max.obj.params HOT 2
- TensorFlow lite Whisper model get worse inference result. HOT 1
- Not getting the same result when using .tflite in C and Python.
- Math problem HOT 1
- Cannot import tflite_support.task when tensorflow is installed HOT 2
- Incapable of loading a tf v1 model
- Action of the matrix exponential on vectors HOT 2
- Fetch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow.