@@ -194,7 +194,7 @@ def _augmentation_space(self, num_bins: int, image_size: List[int]) -> Dict[str,
194
194
"Contrast" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
195
195
"Sharpness" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
196
196
"Posterize" : (8 - (torch .arange (num_bins ) / ((num_bins - 1 ) / 4 )).round ().int (), False ),
197
- "Solarize" : (torch .linspace (256 .0 , 0.0 , num_bins ), False ),
197
+ "Solarize" : (torch .linspace (255 .0 , 0.0 , num_bins ), False ),
198
198
"AutoContrast" : (torch .tensor (0.0 ), False ),
199
199
"Equalize" : (torch .tensor (0.0 ), False ),
200
200
"Invert" : (torch .tensor (0.0 ), False ),
@@ -287,7 +287,7 @@ def _augmentation_space(self, num_bins: int, image_size: List[int]) -> Dict[str,
287
287
"Contrast" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
288
288
"Sharpness" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
289
289
"Posterize" : (8 - (torch .arange (num_bins ) / ((num_bins - 1 ) / 4 )).round ().int (), False ),
290
- "Solarize" : (torch .linspace (256 .0 , 0.0 , num_bins ), False ),
290
+ "Solarize" : (torch .linspace (255 .0 , 0.0 , num_bins ), False ),
291
291
"AutoContrast" : (torch .tensor (0.0 ), False ),
292
292
"Equalize" : (torch .tensor (0.0 ), False ),
293
293
}
@@ -366,7 +366,7 @@ def _augmentation_space(self, num_bins: int) -> Dict[str, Tuple[Tensor, bool]]:
366
366
"Contrast" : (torch .linspace (0.0 , 0.99 , num_bins ), True ),
367
367
"Sharpness" : (torch .linspace (0.0 , 0.99 , num_bins ), True ),
368
368
"Posterize" : (8 - (torch .arange (num_bins ) / ((num_bins - 1 ) / 6 )).round ().int (), False ),
369
- "Solarize" : (torch .linspace (256 .0 , 0.0 , num_bins ), False ),
369
+ "Solarize" : (torch .linspace (255 .0 , 0.0 , num_bins ), False ),
370
370
"AutoContrast" : (torch .tensor (0.0 ), False ),
371
371
"Equalize" : (torch .tensor (0.0 ), False ),
372
372
}
0 commit comments