Sami Ede 2 лет назад
Родитель
Сommit
5de947d3a3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      rembg/session_base.py

+ 1 - 1
rembg/session_base.py

@@ -18,7 +18,7 @@ class BaseSession:
         std: Tuple[float, float, float],
         size: Tuple[int, int],
     ) -> Dict[str, np.ndarray]:
-        im = img.convert("RGB").resize(size, Image.Resampling.LANCZOS)
+        im = img.convert("RGB").resize(size, Image.LANCZOS)
 
         im_ary = np.array(im)
         im_ary = im_ary / np.max(im_ary)