Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions freesplatter/webui/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def run_views_to_3d(
image = Image.open(image_file)
w, h = image.size

image_rgba = self.run_segmentation(image)
image_rgba = self.run_segmentation(image, do_rembg=do_rembg)
if image.mode == 'RGBA':
image, alpha = rgba_to_white_background(image_rgba)
image = v2.functional.center_crop(image, min(h, w))
Expand Down Expand Up @@ -568,4 +568,4 @@ def visualize_cameras_scene(
show_background=True,
y_up=False,
)
return fig
return fig