Augmentor icon indicating copy to clipboard operation
Augmentor copied to clipboard

Default padding value

Open ajuric opened this issue 6 years ago • 4 comments

Is it possible to specify the default value for padding when using the rotation or other transformations which include padding?

This would be a great feature.

Also, it would be great if we could specify distinct default padding values when augmenting semantic segmentation data: one padding for images, one for ground truths.

ajuric avatar Feb 28 '19 15:02 ajuric

Hi @ajuric, thanks for opening the issue - no currently you cannot do either of those features, however I like the idea especially regarding the semantic segmentation. I will definitely add them as features when I get the chance.

mdbloice avatar Mar 07 '19 09:03 mdbloice

Hi there! I added a parameter which passes down to Pillow's API, so now it's possible to fill pixels outside the boundaries of the input with custom value. Is there any other transformation which includes padding?

puhoshville avatar Jul 07 '19 16:07 puhoshville

@mdbloice, hi! waiting for your response =)

puhoshville avatar Jul 09 '19 02:07 puhoshville

@ajuric thanks to a PR by @ajuric this is now possible for rotations, Augmentor version 0.2.4 now includes this feature. As for the different colours for the ground truth and images, this is not yet possible, but I will try to keep it in mind for a future update.

mdbloice avatar Jul 09 '19 12:07 mdbloice