-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
releasedIncluded in a releaseIncluded in a release
Description
Is your feature request related to a problem?
A popular way to train various kinds of generative neural networks is to add gaussian noise to an image and have them restore the original.
Desired solution
- Method
add_gaussian_noiseonImage - Parameter
standard_deviationto adjust the standard deviation of the noise - Raise error if
standard_deviationis below 0
Possible implementation:
- Create a new image with the same dimensions as the original containing only the noise:
from PIL import Image as PILImage
img_noise = PILImage.effect_noise((image.width, image.height), standard_deviation)- Blend it with the original image using
Image.blend
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
releasedIncluded in a releaseIncluded in a release
Type
Projects
Status
✔️ Done