Mask_RCNN icon indicating copy to clipboard operation
Mask_RCNN copied to clipboard

'bool' object has no attribute 'to_deterministic'

Open AloshkaD opened this issue 7 years ago • 5 comments

@waleedka Setting augmentation to True in load_image_gt Gives the error 'bool' object has no attribute 'to_deterministic' That's caused by det = augmentation.to_deterministic() Why would you want to convert a boolian ?

AloshkaD avatar Jun 26 '18 13:06 AloshkaD

Just as load_image_gt() says,

augmentation: Optional. An imgaug (https://github.com/aleju/imgaug) augmentation.

one should pass a imgaug augmentation object rather than a boolean object into this argument. Here's the example: augmentation = imgaug.augmenters.Fliplr(0.5)

keineahnung2345 avatar Aug 20 '18 15:08 keineahnung2345

what should we change, then? @AloshkaD @keineahnung2345

javierfs avatar Nov 15 '18 14:11 javierfs

@javierfs If you don't want to do image augmentation, just pass augmentation=None. Otherwise you should pass something like imgaug.augmenters.Fliplr(0.5) to data_generator.

keineahnung2345 avatar Nov 15 '18 16:11 keineahnung2345

Did you manage to solve it @AloshkaD ? I have the same error now

HAMZARaouia avatar Jul 06 '19 21:07 HAMZARaouia

@keineahnung2345 Do you solve it?

jacksonwu09 avatar Mar 04 '24 07:03 jacksonwu09