ultralytics 8.0.182 remove deprecated pkg_resources (#4979)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
0cf82f5040
commit
28569ced8a
10 changed files with 134 additions and 45 deletions
|
|
@ -143,7 +143,7 @@ class FastSAMPrompt:
|
|||
|
||||
save_path = Path(output) / result_name
|
||||
save_path.parent.mkdir(exist_ok=True, parents=True)
|
||||
image = Image.frombytes('RGB', fig.canvas.get_width_height(), fig.canvas.tostring_rgb())
|
||||
image = Image.frombytes('RGB', fig.canvas.get_width_height(), fig.canvas.buffer_rgba())
|
||||
image.save(save_path)
|
||||
plt.close()
|
||||
pbar.set_description(f'Saving {result_name} to {save_path}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue