GithubHelp home page GithubHelp logo

Comments (2)

PINTO0309 avatar PINTO0309 commented on June 7, 2024

What is it you are trying to do when a structurally perfectly correct model is being generated?

Your model Tile is garbage. I recommend that you look into the process called "broadcast".

onnx2tf -i sample.onnx -cotof
Model conversion started ============================================================
INFO: input_op_name: input_1 shape: [1, 4, 56, 56] dtype: float32
INFO: input_op_name: input_2 shape: [1, 96, 1, 1] dtype: float32

INFO: 3 / 5
INFO: onnx_op_type: Slice onnx_op_name: sng_Slice_0
INFO:  input_name.1: input_1 shape: [1, 4, 56, 56] dtype: float32
INFO:  input_name.2: slice0 shape: [1] dtype: int64
INFO:  input_name.3: slice1 shape: [1] dtype: int64
INFO:  input_name.4: slice2 shape: [1] dtype: int64
INFO:  input_name.5: slice2 shape: [1] dtype: int64
INFO:  output_name.1: slice shape: [1, 1, 56, 56] dtype: float32
INFO: tf_op_type: strided_slice
INFO:  input.1.input_: name: input_1 shape: (1, 56, 56, 4) dtype: <dtype: 'float32'> 
INFO:  input.2.begin: shape: (1,) dtype: int64 
INFO:  input.3.end: shape: (1,) dtype: int64 
INFO:  input.4.strides: shape: (1,) dtype: <dtype: 'int64'> 
INFO:  output.1.output: name: tf.strided_slice/StridedSlice:0 shape: (1, 56, 56, 1) dtype: <dtype: 'float32'> 

INFO: 4 / 5
INFO: onnx_op_type: Tile onnx_op_name: sng_Tile_1
INFO:  input_name.1: slice shape: [1, 1, 56, 56] dtype: float32
INFO:  input_name.2: tile1 shape: [4] dtype: int64
INFO:  output_name.1: tile shape: [1, 96, 56, 56] dtype: float32
INFO: tf_op_type: tile
INFO:  input.1.input: name: tf.strided_slice/StridedSlice:0 shape: (1, 56, 56, 1) dtype: <dtype: 'float32'> 
INFO:  input.2.multiples: shape: (4,) dtype: int64 
INFO:  output.1.output: name: tf.tile_1/Tile:0 shape: (1, 56, 56, 96) dtype: <dtype: 'float32'> 

INFO: 5 / 5
INFO: onnx_op_type: Mul onnx_op_name: sng_Mul_2
INFO:  input_name.1: tile shape: [1, 96, 56, 56] dtype: float32
INFO:  input_name.2: input_2 shape: [1, 96, 1, 1] dtype: float32
INFO:  output_name.1: output shape: [1, 96, 56, 56] dtype: float32
INFO: tf_op_type: multiply
INFO:  input.1.x: name: tf.tile_1/Tile:0 shape: (1, 56, 56, 96) dtype: <dtype: 'float32'> 
INFO:  input.2.y: name: input_2 shape: (1, 1, 1, 96) dtype: <dtype: 'float32'> 
INFO:  output.1.output: name: tf.math.multiply_3/Mul:0 shape: (1, 56, 56, 96) dtype: <dtype: 'float32'> 

saved_model output started ==========================================================
saved_model output complete!
Float32 tflite output complete!
Float16 tflite output complete!

ONNX and TF output value validation started =========================================
INFO: validation_conditions: np.allclose(onnx_outputs, tf_outputs, rtol=0.0, atol=0.0001, equal_nan=True)
INFO: onnx_output_name: slice tf_output_name: tf.strided_slice/StridedSlice:0 shape: (1, 1, 56, 56) dtype: float32 validate_result:  Matches 
INFO: onnx_output_name: tile tf_output_name: tf.tile_1/Tile:0 shape: (1, 96, 56, 56) dtype: float32 validate_result:  Matches 
INFO: onnx_output_name: output tf_output_name: tf.math.multiply_3/Mul:0 shape: (1, 96, 56, 56) dtype: float32 validate_result:  Matches 

image

image

from onnx2tf.

rjharahul21 avatar rjharahul21 commented on June 7, 2024

I am getting accuracy drop while running model on gpu.

from onnx2tf.

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.