Skip to content

Commit

Permalink
gauss noie can be negative (albumentations-team#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
ternaus authored Jun 17, 2019
1 parent dfde619 commit 5edb60e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion albumentations/augmentations/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,6 @@ def get_params_dependent_on_targets(self, params):
sigma = var ** 0.5
random_state = np.random.RandomState(random.randint(0, 2 ** 32 - 1))
gauss = random_state.normal(mean, sigma, image.shape)
gauss = gauss - np.min(gauss)
return {
'gauss': gauss
}
Expand Down

0 comments on commit 5edb60e

Please sign in to comment.