mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-18 07:05:56 +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:
|
||||
raise ValueError("model_path is required")
|
||||
|
||||
super().__init__(
|
||||
model_name,
|
||||
sess_opts,
|
||||
providers,
|
||||
*args,
|
||||
**kwargs
|
||||
)
|
||||
super().__init__(model_name, sess_opts, providers, *args, **kwargs)
|
||||
|
||||
def predict(self, img: PILImage, *args, **kwargs) -> List[PILImage]:
|
||||
ort_outs = self.inner_session.run(
|
||||
|
Loading…
x
Reference in New Issue
Block a user