MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / init_detector

Function init_detector

mmdet/apis/inference.py:18–57  ·  view source on GitHub ↗

Initialize a detector from config file. Args: config (str, :obj:`Path`, or :obj:`mmcv.Config`): Config file path, :obj:`Path`, or the config object. checkpoint (str, optional): Checkpoint path. If left as None, the model will not load any weights.

(config, checkpoint=None, device='cuda:0', cfg_options=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

initializeMethod · 0.90
mainFunction · 0.90
__init__Method · 0.90
mainFunction · 0.90
test_init_detectorFunction · 0.90

Calls 4

build_detectorFunction · 0.90
get_classesFunction · 0.90
getMethod · 0.80
toMethod · 0.45

Tested by 3

mainFunction · 0.72
__init__Method · 0.72
test_init_detectorFunction · 0.72