Neuroglycerin / neukrill-net-tools

Tools coded as part of the NDSB competition.
MIT License
0 stars 0 forks source link

Non-scaling augmentation #56

Closed gngdb closed 9 years ago

gngdb commented 9 years ago

I thought we'd already made an issue for this. We've already discussed it. Basically, the idea is to avoid scaling the images at all. Small images would be placed in the center of a largely white area, and larger images would receive several croppings (for example from different corners).

scottclowe commented 9 years ago

I thought the small images would be randomly placed?

gngdb commented 9 years ago

Yeah, that was the plan originally. But, we're now loading the entire dataset (post-augmentation) into RAM so I want to avoid unnecessarily increasing the number of images. Seems like centering smaller images isn't a problem if we move them randomly in their original dimensions (does that make sense?). That frees us up for applying other kinds of augmentation, like rotation, as well.

scottclowe commented 9 years ago

This name is no good for the function. I propose "shapeFix(shape)".

gngdb commented 9 years ago

Sounds good, make sure it has a docstring. Not easy to explain in two words anyway. On 21 Feb 2015 10:42, "scottclowe" notifications@github.com wrote:

This name is no good for the function. I propose "shapeFix(shape)".

— Reply to this email directly or view it on GitHub https://github.com/Neuroglycerin/neukrill-net-tools/issues/56#issuecomment-75366197 .