MCPcopy Create free account
hub / github.com/BIT-DataLab/Edit-Banana / remove_background

Method remove_background

modules/icon_picture_processor.py:219–221  ·  view source on GitHub ↗

Alias for predict.

(self, image: Image.Image)

Source from the content-addressed store, hash-verified

217 return Image.fromarray(img_rgba)
218
219 def remove_background(self, image: Image.Image) -> Image.Image:
220 """Alias for predict."""
221 return self.predict(image)
222
223 def unload(self):
224 """Release model resources."""

Callers 1

_process_elementMethod · 0.45

Calls 1

predictMethod · 0.95

Tested by

no test coverage detected