Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix linter issues

Daniel Gatisc817f5381ceb
diff --git a/rembg/bg.py b/rembg/bg.py
index 1a0b8ef..554096a 100644
--- a/rembg/bg.py
+++ b/rembg/bg.py
@@ -5,8 +5,14 @@ from typing import Any, List, Optional, Tuple, Union, cast
import numpy as np
import onnxruntime as ort
-from cv2 import (BORDER_DEFAULT, MORPH_ELLIPSE, MORPH_OPEN, GaussianBlur,
- getStructuringElement, morphologyEx)
+from cv2 import (
+ BORDER_DEFAULT,
+ MORPH_ELLIPSE,
+ MORPH_OPEN,
+ GaussianBlur,
+ getStructuringElement,
+ morphologyEx,
+)
from PIL import Image, ImageOps
from PIL.Image import Image as PILImage
from pymatting.alpha.estimate_alpha_cf import estimate_alpha_cf