Spaces:
Paused
Paused
Abdulrahman1989
commited on
Commit
·
9eb36c8
1
Parent(s):
e6d8d8b
Fix the code
Browse files- Image3DProcessor.py +1 -1
Image3DProcessor.py
CHANGED
@@ -42,7 +42,7 @@ class Image3DProcessor:
|
|
42 |
self.model.eval()
|
43 |
|
44 |
@torch.no_grad()
|
45 |
-
def preprocess(self, input_image, preprocess_background=
|
46 |
# Create a new Rembg session
|
47 |
rembg_session = rembg.new_session()
|
48 |
|
|
|
42 |
self.model.eval()
|
43 |
|
44 |
@torch.no_grad()
|
45 |
+
def preprocess(self, input_image, preprocess_background=True, foreground_ratio=0.65):
|
46 |
# Create a new Rembg session
|
47 |
rembg_session = rembg.new_session()
|
48 |
|