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

Method predict

samples/vision/resnet/runtime/python/resnet.py:181–213  ·  view source on GitHub ↗

Run the complete ResNet inference pipeline on one image. Args: image: Input image in BGR format. resize_type: Optional override for preprocessing resize strategy. topk: Optional override for Top-K result count. Returns: The T

(
        self,
        image: np.ndarray,
        resize_type: Optional[int] = None,
        topk: Optional[int] = None,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

mainFunction · 0.95
__call__Method · 0.95

Calls 3

pre_processMethod · 0.95
forwardMethod · 0.95
post_processMethod · 0.95

Tested by

no test coverage detected