PUTvision / qgis-plugin-deepness

Deepness is a remote sensing plugin that enables deep learning inference in QGIS
https://www.buymeacoffee.com/deepness
Apache License 2.0
99 stars 23 forks source link

Make 0-1 normalization optional #175

Open zjans opened 3 months ago

zjans commented 3 months ago

Thanks for the extremely useful plugin! Well done.

Not all models are trained on data with 0-1 normalization so it would be great to make this pre-processing step optional.

Commenting out line 410 in src/deepness/processing/models/model_base.py works for now but it would be great to either have a toggle to disable tiles_batched = preprocessing_utils.normalize_values_to_01(tiles_batched) or add a metadata value in the onnx model to do the same.

Thanks again

przemyslaw-aszkowski commented 3 months ago

Hi, thanks for the nice feedback. That sounds like a good idea, we will add it to our TODO list :) And feel invited if you feel like doing it in a PR, contribution is welcome! Cheers Przemek