forked from mrq/DL-Art-School
Add 'jpeg-normal' corruption
This commit is contained in:
parent
515905e904
commit
796659b0ac
|
@ -100,6 +100,9 @@ class ImageCorruptor:
|
||||||
elif aug == 'jpeg-broad':
|
elif aug == 'jpeg-broad':
|
||||||
lo=15
|
lo=15
|
||||||
range=60
|
range=60
|
||||||
|
elif aug == 'jpeg-normal':
|
||||||
|
lo=35
|
||||||
|
range=60
|
||||||
# JPEG compression
|
# JPEG compression
|
||||||
qf = (rand_int % range + lo)
|
qf = (rand_int % range + lo)
|
||||||
# cv2's jpeg compression is "odd". It introduces artifacts. Use PIL instead.
|
# cv2's jpeg compression is "odd". It introduces artifacts. Use PIL instead.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user