MCPcopy Create free account
hub / github.com/D-Robotics/rdk_model_zoo / predict

Method predict

samples/vision/modnet/runtime/python/modnet.py:248–262  ·  view source on GitHub ↗

Run the complete matting pipeline on a single image. Args: image: Input image in BGR format. Returns: Alpha matte as a uint8 grayscale image.

(
        self,
        image: np.ndarray,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__call__Method · 0.95
mainFunction · 0.95

Calls 3

pre_processMethod · 0.95
forwardMethod · 0.95
post_processMethod · 0.95

Tested by

no test coverage detected