open-cd icon indicating copy to clipboard operation
open-cd copied to clipboard

How to use the onnx model for inference

Open hyzhang-rain opened this issue 1 year ago • 1 comments

Hello, thank you for your work. I have generated the onnx model using export.py, and then how to use this onnx model for inference? The mmlab code cannot be used directly for change detection, and mmlab code is packaged so that it is difficult to modify. Please give me some help, thank you

hyzhang-rain avatar Jan 08 '24 06:01 hyzhang-rain

hi @Rain-Zhang666, You may export the model using tools/export.py, then manually re-implement the pre- and post-processing based on the relevant information from the model, and finally use ort for inference.

GreatV avatar Apr 18 '24 14:04 GreatV