Skip to content

Commit 5845f8f

Browse files
LutaoChunepeplwu
authored andcommitted
fix color jitter bug (#119)
1 parent d47b726 commit 5845f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdseg/data_aug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def random_jitter(cv_img, saturation_range, brightness_range, contrast_range):
327327
brightness_ratio = np.random.uniform(-brightness_range, brightness_range)
328328
contrast_ratio = np.random.uniform(-contrast_range, contrast_range)
329329

330-
order = [1, 2, 3]
330+
order = [0, 1, 2]
331331
np.random.shuffle(order)
332332

333333
for i in range(3):

0 commit comments

Comments
 (0)