🚀 The feature
Use typing.Sequence to check types of sample and ratio arguments instead of (list, tuple) in transforms.RandomErase class.
Motivation, pitch
As I see all other transforms use typing.Sequence to ensure that sequences were passed where needed (e.g. Normalize, transforms.RandomResizedCrop and so on). However isinstance(scale, (tuple, list)) (and same for ratio) is used in RandomErase.
This, for example, leads to impossibility of instantiating this transform from config using hydra.instantiate, because scale then has OmegaConf.ListConfig type which is a Sequence, but not tuple or float and causes TypeError.
Alternatives
No response
Additional context
No response