@@ -194,7 +194,7 @@ def _augmentation_space(self, num_bins: int, image_size: List[int]) -> Dict[str,
194194 "Contrast" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
195195 "Sharpness" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
196196 "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 ),
198198 "AutoContrast" : (torch .tensor (0.0 ), False ),
199199 "Equalize" : (torch .tensor (0.0 ), False ),
200200 "Invert" : (torch .tensor (0.0 ), False ),
@@ -287,7 +287,7 @@ def _augmentation_space(self, num_bins: int, image_size: List[int]) -> Dict[str,
287287 "Contrast" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
288288 "Sharpness" : (torch .linspace (0.0 , 0.9 , num_bins ), True ),
289289 "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 ),
291291 "AutoContrast" : (torch .tensor (0.0 ), False ),
292292 "Equalize" : (torch .tensor (0.0 ), False ),
293293 }
@@ -366,7 +366,7 @@ def _augmentation_space(self, num_bins: int) -> Dict[str, Tuple[Tensor, bool]]:
366366 "Contrast" : (torch .linspace (0.0 , 0.99 , num_bins ), True ),
367367 "Sharpness" : (torch .linspace (0.0 , 0.99 , num_bins ), True ),
368368 "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 ),
370370 "AutoContrast" : (torch .tensor (0.0 ), False ),
371371 "Equalize" : (torch .tensor (0.0 ), False ),
372372 }
0 commit comments