zhiweili commited on
Commit
38d213a
·
1 Parent(s): 8d7237d

reset image save quality

Browse files
Files changed (1) hide show
  1. segment_utils.py +1 -1
segment_utils.py CHANGED
@@ -30,7 +30,7 @@ def restore_result(croper, category, generated_image):
30
  extension = 'jpg'
31
 
32
  path = f"output/{uuid.uuid4()}.{extension}"
33
- restored_image.save(path)
34
 
35
  return restored_image, path
36
 
 
30
  extension = 'jpg'
31
 
32
  path = f"output/{uuid.uuid4()}.{extension}"
33
+ restored_image.save(path, quality=100)
34
 
35
  return restored_image, path
36