joheras / CLoDSA

124 stars 32 forks source link

Height and width interchanged #3

Closed joselespinosa closed 5 years ago

joselespinosa commented 5 years ago

Hi,

testing the application I detected that height and width are interchanged when calling to the shape function in OpenCV, for example in the crop augmentation file:

(w,h) = image.shape[:2]

and it should be:

(h,w) = image.shape[:2]

As (w,h) is considered in all the code, I had problems after generating the output data in Pascal VOC format, as the height/weight were also interchanged in the main properties of the annotated data.

The new bounding boxes obtained by the augmentation techniques were generated fine, but the problematic came when loading the new augmented data to train the CNN, as when the platform tried to normalise the input data it was incorrectly done due to the interchanged height/width.

Regards.

joheras commented 5 years ago

Hi Jose,

thanks for the bug report. I have fixed that problem now and it should work properly by installing the new version of clodsa:

pip install clodsa==1.2.17.

Let me know if you have any further problem. Best, Jónathan

joselespinosa commented 5 years ago

Thanks Jónathan,

it seems to work fine in the small test I run.

Regards. Jose Luis