Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix linters

Daniel Gatis00e3e257fe49
diff --git a/rembg/bg.py b/rembg/bg.py
index 170329c..504b279 100644
--- a/rembg/bg.py
+++ b/rembg/bg.py
@@ -3,6 +3,7 @@ from enum import Enum
from typing import Any, List, Optional, Tuple, Union
import numpy as np
+import onnxruntime as ort
from cv2 import (
BORDER_DEFAULT,
MORPH_ELLIPSE,
@@ -22,8 +23,6 @@ from .session_factory import new_session
from .sessions import sessions_class
from .sessions.base import BaseSession
-import onnxruntime as ort
-
ort.set_default_logger_severity(3)
kernel = getStructuringElement(MORPH_ELLIPSE, (3, 3))