albumentations-team / albumentations

Fast and flexible image augmentation library. Paper about the library: https://www.mdpi.com/2078-2489/11/2/125
https://albumentations.ai
MIT License
13.82k stars 1.61k forks source link

[tech debt] random_utils to modern random state generator #1547

Open ternaus opened 5 months ago

ternaus commented 5 months ago
The code provided uses the legacy NumPy RandomState, which is still supported but not recommended for new code since NumPy version 1.17. Instead, it's suggested to use the new np.random.Generator API, which provides a number of advantages over RandomState, including better randomness and more distributions.
AshishPvjs commented 4 months ago

@ternaus can I take care of this issue?

ternaus commented 4 months ago

Go ahead.