Increase jpeg corruption & add error
This commit is contained in:
parent
796659b0ac
commit
25b007a0f5
|
@ -101,8 +101,10 @@ class ImageCorruptor:
|
||||||
lo=15
|
lo=15
|
||||||
range=60
|
range=60
|
||||||
elif aug == 'jpeg-normal':
|
elif aug == 'jpeg-normal':
|
||||||
lo=35
|
lo=55
|
||||||
range=60
|
range=35
|
||||||
|
else:
|
||||||
|
raise NotImplementedError("specified jpeg corruption doesn't exist")
|
||||||
# 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