Closed Mohit0928 closed 3 years ago
It shows u8
because image capabilities generate RGB images where each pixel is an 8-bit integer.
Can you explain what you expected to happen here or what you thought Rune should be doing under the hood when you say the output type is a f32
tensor with dimensions [1,353,257,3]
?
Ohh, got it. Earlier I thought it could also accept output type as f32. It gets resolved by first setting image capabilities to generate RGB images where each pixel is an 8-bit integer and later using "image_normalization" proc-block to convert into "f32".
pipeline:
image:
capability: IMAGE
outputs:
- type: u8
dimensions: [1,353,257,3]
args:
pixel-format: "@PixelFormat::RGB"
height: 353
width: 257
image_normalization:
proc-block: "hotg-ai/rune#proc-blocks/image-normalization"
inputs:
- image
outputs:
- type: f32
dimensions: [1,353,257,3]
Thanks
Closing the issue
While running
Rune model-info model.tflite
for Pose Estimation model, it givesWhen I put image outputs type as "f32" as shown below:
When I tried to build the Rune, it throws an error:
Why it's showing "u8" datatype even when I am passing "f32"?