We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6624ed5 commit a48bd0cCopy full SHA for a48bd0c
references/detection/transforms.py
@@ -218,10 +218,10 @@ def forward(
218
class RandomPhotometricDistort(nn.Module):
219
def __init__(
220
self,
221
- contrast: Tuple[float] = (0.5, 1.5),
222
- saturation: Tuple[float] = (0.5, 1.5),
223
- hue: Tuple[float] = (-0.05, 0.05),
224
- brightness: Tuple[float] = (0.875, 1.125),
+ contrast: Tuple[float, float] = (0.5, 1.5),
+ saturation: Tuple[float, float] = (0.5, 1.5),
+ hue: Tuple[float, float] = (-0.05, 0.05),
+ brightness: Tuple[float, float] = (0.875, 1.125),
225
p: float = 0.5,
226
):
227
super().__init__()
0 commit comments