Spaces:
Running
on
Zero
Running
on
Zero
bluestyle97
commited on
Commit
•
e6f5524
1
Parent(s):
c070b3c
Update freesplatter/webui/runner.py
Browse files
freesplatter/webui/runner.py
CHANGED
@@ -76,13 +76,12 @@ class FreeSplatterRunner:
|
|
76 |
self.device = device
|
77 |
|
78 |
# background remover
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
# self.rembg.
|
85 |
-
self.rembg = rembg.new_session('birefnet-general')
|
86 |
|
87 |
# diffusion models
|
88 |
pipeline = DiffusionPipeline.from_pretrained(
|
|
|
76 |
self.device = device
|
77 |
|
78 |
# background remover
|
79 |
+
self.rembg = AutoModelForImageSegmentation.from_pretrained(
|
80 |
+
"ZhengPeng7/BiRefNet",
|
81 |
+
trust_remote_code=True,
|
82 |
+
)
|
83 |
+
self.rembg.eval()
|
84 |
+
# self.rembg = rembg.new_session('birefnet-general')
|
|
|
85 |
|
86 |
# diffusion models
|
87 |
pipeline = DiffusionPipeline.from_pretrained(
|