diff --git a/rembg/bg.py b/rembg/bg.py index 170329cd..504b2790 100644 --- a/rembg/bg.py +++ b/rembg/bg.py @@ -3,6 +3,7 @@ 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 .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))