-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #557 from aleju/fix_seed
Fix random.seed not always seeding in-place
- Loading branch information
Showing
3 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Fixed `random.seed` not always seeding in-place #557 | ||
|
||
Fixed `imgaug.random.seed()` not seeding the global `RNG` in-place | ||
in numpy 1.17+. The (unfixed) function instead created a new | ||
global `RNG` with the given seed. This set the seed of augmenters | ||
created *after* the `seed()` call, but not of augmenters created | ||
*before* the `seed()` call as they would continue to use the old | ||
global RNG. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters