c++ SDK: check for input image size #1866
Replies: 2 comments
-
@Kaeseknacker The model range is determined when convert the model, you can check the deploy config. You can also take a look at detail.json in model directory, it saved some backend information which have input shapes. |
Beta Was this translation helpful? Give feedback.
-
Hi, I also found the image size in the detail.json file. But I actually wanted to avoid parsing this file myself. I assume mmdeploy parses this file anyway, because it is necessary so that the model can be loaded. |
Beta Was this translation helpful? Give feedback.
-
Hi, I work with this c++ SDK example for TRT-detectors:
I use a dynamic model to process different image sizes. Before input the image to the model I want to check if the image size is in the dynamic range of the model.
Is it possible to get the dynamic input range from the model via the SDK? I can't find any function for that.
Or as a workaround: What kind of exception is
Apply
throwing if the image isn't inside the input range? I can't find out either.I only get this error, but I don't know how to catch it:
Beta Was this translation helpful? Give feedback.
All reactions