MCPcopy Create free account
hub / github.com/MotrixLab/ADHMR / load_cache

Method load_cache

HMR-Scorer/data/PW3D_DPO.py:64–69  ·  view source on GitHub ↗
(self, annot_path_cache)

Source from the content-addressed store, hash-verified

62 )
63
64 def load_cache(self, annot_path_cache):
65 datalist = Cache(annot_path_cache)
66 # assert datalist.data_strategy == getattr(cfg, 'data_strategy', None), \
67 # f'Cache data strategy {datalist.data_strategy} does not match current data strategy ' \
68 # f'{getattr(cfg, "data_strategy", None)}'
69 return datalist
70
71 def load_dpo_pt(self):
72 """Load all image paths and labels from json annotation files into buffer."""

Callers 11

__init__Method · 0.95
load_dpo_ptMethod · 0.95
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

CacheClass · 0.70

Tested by

no test coverage detected