Skip to content

Commit

Permalink
Fixed RandomSunFlare circles only using the first element of the src_…
Browse files Browse the repository at this point in the history
…color. (#1285)
  • Loading branch information
hoel-bagard committed Sep 16, 2022
1 parent cffad9d commit b1af92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions albumentations/augmentations/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ def get_params_dependent_on_targets(self, params):
rad = random.randint(1, max(height // 100 - 2, 2))

r_color = random.randint(max(self.src_color[0] - 50, 0), self.src_color[0])
g_color = random.randint(max(self.src_color[0] - 50, 0), self.src_color[0])
b_color = random.randint(max(self.src_color[0] - 50, 0), self.src_color[0])
g_color = random.randint(max(self.src_color[1] - 50, 0), self.src_color[1])
b_color = random.randint(max(self.src_color[2] - 50, 0), self.src_color[2])

circles += [
(
Expand Down

0 comments on commit b1af92a

Please sign in to comment.