Skip to content

Commit

Permalink
Merge pull request #49 from tiulpin/patch-1
Browse files Browse the repository at this point in the history
JPEGCompression bugfix
  • Loading branch information
lext authored Mar 3, 2020
2 parents 9ca08af + e25bf0a commit d6caf26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solt/transforms/_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ def __init__(self, p=0.5, quality_range=None, data_indices=None):
self.quality_range = validate_numeric_range_parameter(quality_range, (100, 100), 0, 100)

def sample_transform(self, data):
self.state_dict["quality"] = random.randint(self.quality_range[0], self.quality_range[0])
self.state_dict["quality"] = random.randint(self.quality_range[0], self.quality_range[1])

@img_shape_checker
def _apply_img(self, img: np.ndarray, settings: dict):
Expand Down

0 comments on commit d6caf26

Please sign in to comment.