MCPcopy
hub / github.com/hustvl/Vim / get

Method get

det/detectron2/data/catalog.py:170–178  ·  view source on GitHub ↗

Access an attribute and return its value if exists. Otherwise return default.

(self, key, default=None)

Source from the content-addressed store, hash-verified

168 return self
169
170 def get(self, key, default=None):
171 """
172 Access an attribute and return its value if exists.
173 Otherwise return default.
174 """
175 try:
176 return getattr(self, key)
177 except AttributeError:
178 return default
179
180
181class _MetadataCatalog(UserDict):

Callers 15

build_anchor_generatorFunction · 0.45
build_backboneFunction · 0.45
__init__Method · 0.45
build_keypoint_headFunction · 0.45
build_box_headFunction · 0.45
lossesMethod · 0.45
build_roi_headsFunction · 0.45
build_mask_headFunction · 0.45
_postprocessMethod · 0.45
forwardMethod · 0.45
build_modelFunction · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by 3

get_sample_coco_imageFunction · 0.36
verify_resultsFunction · 0.36