MCPcopy
hub / github.com/SizheAn/PanoHead / load

Method load

metrics/metric_utils.py:146–151  ·  view source on GitHub ↗
(pkl_file)

Source from the content-addressed store, hash-verified

144
145 @staticmethod
146 def load(pkl_file):
147 with open(pkl_file, 'rb') as f:
148 s = dnnlib.EasyDict(pickle.load(f))
149 obj = FeatureStats(capture_all=s.capture_all, max_items=s.max_items)
150 obj.__dict__.update(s)
151 return obj
152
153#----------------------------------------------------------------------------
154

Callers 15

load_network_pklFunction · 0.80
open_image_folderFunction · 0.80
open_image_folderFunction · 0.80
open_image_zipFunction · 0.80
open_cifar10Function · 0.80
generate_imagesFunction · 0.80
generate_imagesFunction · 0.80
projectFunction · 0.80
project_ptiFunction · 0.80
projectFunction · 0.80
project_ptiFunction · 0.80
get_pluginFunction · 0.80

Calls 2

FeatureStatsClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected