bethgelab/imagecorruptions

Feature request: Seed value concept

ojwenzel opened this issue · 2 comments

For usage in science, reproducibility of the corruption types would be very helpful. Thus, some sort of seed value concept would be a great feature.

Resetting the numpy seed before calling the corruption function does yield reproducible results for all corruption types :)

For clarification (if somebody else wants to use that as a workaround for the time being):

np.random.seed(131213)
corrupt(img, corruption_name=corruption_name, severity=severity)

yields a corrupted image that is reproducible (with the same seed)