mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-18 08:45:52 +08:00
fix docker
This commit is contained in:
parent
a9026d02e0
commit
acc526fbaf
@ -23,13 +23,7 @@ class U2netCustomSession(BaseSession):
|
|||||||
if model_path is None:
|
if model_path is None:
|
||||||
raise ValueError("model_path is required")
|
raise ValueError("model_path is required")
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(model_name, sess_opts, providers, *args, **kwargs)
|
||||||
model_name,
|
|
||||||
sess_opts,
|
|
||||||
providers,
|
|
||||||
*args,
|
|
||||||
**kwargs
|
|
||||||
)
|
|
||||||
|
|
||||||
def predict(self, img: PILImage, *args, **kwargs) -> List[PILImage]:
|
def predict(self, img: PILImage, *args, **kwargs) -> List[PILImage]:
|
||||||
ort_outs = self.inner_session.run(
|
ort_outs = self.inner_session.run(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user