Skip to content

Commit

Permalink
remove quality param in slice export due to errors (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcakyon authored May 20, 2024
1 parent 0b2a862 commit 45904e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sahi/slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ def _export_single_slice(image: np.ndarray, output_dir: str, slice_file_name: st
image_pil = read_image_as_pil(image)
slice_file_path = str(Path(output_dir) / slice_file_name)
# export sliced image
image_pil.save(slice_file_path, quality="keep")
# quaility is removed due to discussions/973,981, pull/956
# image_pil.save(slice_file_path, quality="keep")
image_pil.save(slice_file_path)
image_pil.close() # to fix https://github.com/obss/sahi/issues/565
verboselog("sliced image path: " + slice_file_path)

Expand Down

0 comments on commit 45904e4

Please sign in to comment.