I tried to change the existing MLModel
(https://drive.google.com/file/d/16JEWh48fgQc8az7avROePOd-PYda0Yi2/view?usp=sharing) output size from 2048x2048 (existing output size) to 1024x1024.
I used this script to change the output image size:
spec = ct.utils.load_spec("myModel.mlmodel")
output = spec.description.output[0]
output.type.imageType.height = 1024
output.type.imageType.width = 1024
ct.utils.save_spec(spec, "myModelNew.mlmodel")
The new model is saved correctly, with the expected output size in the prediction tab:
But when I run it with the new model it generates 2048x2048 like the original model.
Any idea why will it behave like this? Thank you for the help!