MCPcopy Create free account
hub / github.com/TencentARC/FreeSplatter / run_segmentation

Method run_segmentation

freesplatter/webui/runner.py:147–157  ·  view source on GitHub ↗
(
        self, 
        image, 
        do_rembg=True,
    )

Source from the content-addressed store, hash-verified

145
146 @torch.inference_mode()
147 def run_segmentation(
148 self,
149 image,
150 do_rembg=True,
151 ):
152 torch.cuda.empty_cache()
153
154 if do_rembg:
155 image = remove_background(image, self.rembg)
156
157 return image
158
159 def run_img_to_3d(
160 self,

Callers 1

run_views_to_3dMethod · 0.95

Calls 1

remove_backgroundFunction · 0.85

Tested by

no test coverage detected