mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-15 17:55:55 +08:00
fix linter issues
This commit is contained in:
parent
c713191c36
commit
c817f5381c
10
rembg/bg.py
10
rembg/bg.py
@ -5,8 +5,14 @@ from typing import Any, List, Optional, Tuple, Union, cast
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import onnxruntime as ort
|
import onnxruntime as ort
|
||||||
from cv2 import (BORDER_DEFAULT, MORPH_ELLIPSE, MORPH_OPEN, GaussianBlur,
|
from cv2 import (
|
||||||
getStructuringElement, morphologyEx)
|
BORDER_DEFAULT,
|
||||||
|
MORPH_ELLIPSE,
|
||||||
|
MORPH_OPEN,
|
||||||
|
GaussianBlur,
|
||||||
|
getStructuringElement,
|
||||||
|
morphologyEx,
|
||||||
|
)
|
||||||
from PIL import Image, ImageOps
|
from PIL import Image, ImageOps
|
||||||
from PIL.Image import Image as PILImage
|
from PIL.Image import Image as PILImage
|
||||||
from pymatting.alpha.estimate_alpha_cf import estimate_alpha_cf
|
from pymatting.alpha.estimate_alpha_cf import estimate_alpha_cf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user