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

Method _get_default_path

modules/icon_picture_processor.py:56–61  ·  view source on GitHub ↗

Default model path under models/rmbg/.

(self)

Source from the content-addressed store, hash-verified

54 self._output_name = None
55
56 def _get_default_path(self) -> str:
57 """Default model path under models/rmbg/."""
58 return os.path.join(
59 os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
60 "models", "rmbg", "model.onnx"
61 )
62
63 def load(self):
64 """Load RMBG-2.0 ONNX model; fallback to CPU if CUDA fails."""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected