Comments (3)
The tool is designed to optimize the model to the limit for low-spec edge devices, so there are no plans to support variable resolution or variable batches at this time. This may be implemented in the future.
from openvino2tensorflow.
Hi! Is it still impossible to convert model with variable batch size from OV to TF?
from openvino2tensorflow.
-
OpenVINO -> ONNX
https://github.com/PINTO0309/openvino2tensorflow -
ONNX ->sbi4onnx -> N batch ONNX
https://github.com/PINTO0309/simple-onnx-processing-tools -
N batch ONNX -> TF
$ onnx-tf convert -i mobileone_s0_Nx3xHxW.onnx -o saved_model
/usr/local/lib/python3.8/dist-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.3.0 and strictly below 2.5.0 (nightly versions are not supported).
The versions of TensorFlow you are currently using is 2.9.0 and is not supported.
Some things might work, some things might not.
If you were to encounter a bug, do not file an issue.
If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version.
You can find the compatibility matrix in TensorFlow Addon's readme:
https://github.com/tensorflow/addons
warnings.warn(
2022-07-29 20:04:51,012 - onnx-tf - INFO - Start converting onnx pb to tf saved model
WARNING:absl:Found untraced functions such as gen_tensor_dict while saving (showing 1 of 1). These functions will not be directly callable after loading.
2022-07-29 20:05:07,449 - onnx-tf - INFO - Converting completes successfully.
INFO:onnx-tf:Converting completes successfully.
$ saved_model_cli show --dir saved_model/ --all
MetaGraphDef with tag-set: 'serve' contains the following SignatureDefs:
signature_def['__saved_model_init_op']:
The given SavedModel SignatureDef contains the following input(s):
The given SavedModel SignatureDef contains the following output(s):
outputs['__saved_model_init_op'] tensor_info:
dtype: DT_INVALID
shape: unknown_rank
name: NoOp
Method name is:
signature_def['serving_default']:
The given SavedModel SignatureDef contains the following input(s):
inputs['input'] tensor_info:
dtype: DT_FLOAT
shape: (-1, 3, -1, -1)
name: serving_default_input:0
The given SavedModel SignatureDef contains the following output(s):
outputs['184'] tensor_info:
dtype: DT_FLOAT
shape: (-1, 1000)
name: StatefulPartitionedCall:0
Method name is: tensorflow/serving/predict
Concrete Functions:
Function Name: '__call__'
Named Argument #1
input
Function Name: 'gen_tensor_dict'
from openvino2tensorflow.
Related Issues (20)
- [Consolidate all YOLOv5 issues] YOLOv5 export error `ValueError: axes don't match array` HOT 6
- While converting openvino (xml) to Tensorflow saved_output_model, getting following error.temp_sorted_tf_edge.append(tf_edges[to_layer][ports.index(str(idx))]) IndexError: list index out of range
- error in converting openvino to tflite HOT 5
- C3D model conversion - Depth of input (112) is not a multiple of input depth of filter (3) for '{{node tf.nn.conv3d/Conv3D}} HOT 2
- Refactoring for use as importable package HOT 3
- ScatterUpdate node issue HOT 1
- whisper openvino to tflite(https://huggingface.co/zhuzilin/whisper-openvino-tiny.en/tree/main) HOT 1
- bug in layer graph construction HOT 1
- KeyError in channel split HOT 3
- Converting a Yolov5 model to tensorflow HOT 1
- conversion of Yolov7-tiny ends with ERROR: axes don't match array HOT 2
- IndexError: list index out of range HOT 2
- Size discrepancy in conversion HOT 1
- "091_gaze-estimation-adas-0002" failed HOT 2
- Layer data type changes during conversion HOT 1
- Unable to convert yolov8 openvino model to tensorflow HOT 1
- Ranks of all input tensors should match: shape[0] = [1,1] vs. shape[1] = [1] [Op:ConcatV2] name: concat HOT 1
- Error of saving json during converting openvino model to tensorflow with parameter --output_weight_and_json HOT 1
- TypeError: cannot pickle 'module' object HOT 1
- Shape did not match 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 openvino2tensorflow.