MCPcopy
hub / github.com/Vchitect/Latte / load

Method load

tools/metrics/metric_utils.py:135–140  ·  view source on GitHub ↗
(pkl_file)

Source from the content-addressed store, hash-verified

133
134 @staticmethod
135 def load(pkl_file):
136 with open(pkl_file, 'rb') as f:
137 s = dnnlib.EasyDict(pickle.load(f))
138 obj = FeatureStats(capture_all=s.capture_all, max_items=s.max_items)
139 obj.__dict__.update(s)
140 return obj
141
142#----------------------------------------------------------------------------
143

Callers 15

mainFunction · 0.80
train.pyFile · 0.80
find_modelFunction · 0.80
mainFunction · 0.80
train_with_img.pyFile · 0.80
train_pl.pyFile · 0.80
_load_raw_labelsMethod · 0.80
_load_raw_labelsMethod · 0.80
load_image_from_bufferFunction · 0.80

Calls 2

FeatureStatsClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected