浏览代码

fix linters

Daniel Gatis 1 年之前
父节点
当前提交
d1e00734f8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rembg/commands/b_command.py

+ 1 - 1
rembg/commands/b_command.py

@@ -162,7 +162,7 @@ def b_command(
                 if not img_bytes:
                     break
 
-                img = Image.frombytes("RGB", (image_width, image_height), img_bytes)
+                img = PILImage.frombytes("RGB", (image_width, image_height), img_bytes)
                 output = remove(img, session=session, **kwargs)
 
                 if output_specifier: