Increase jpeg corruption & add error

This commit is contained in:
James Betker 2020-10-28 17:37:39 -06:00
parent 796659b0ac
commit 25b007a0f5

View File

@ -101,8 +101,10 @@ class ImageCorruptor:
lo=15
range=60
elif aug == 'jpeg-normal':
lo=35
range=60
lo=55
range=35
else:
raise NotImplementedError("specified jpeg corruption doesn't exist")
# JPEG compression
qf = (rand_int % range + lo)
# cv2's jpeg compression is "odd". It introduces artifacts. Use PIL instead.