MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / fromfile

Method fromfile

detrsmpl/data/data_structures/human_data.py:162–175  ·  view source on GitHub ↗

Construct a HumanData instance from an npz file. Args: npz_path (str): Path to a dumped npz file. Returns: HumanData: A HumanData instance load from file.

(cls, npz_path: str)

Source from the content-addressed store, hash-verified

160
161 @classmethod
162 def fromfile(cls, npz_path: str) -> _HumanData:
163 """Construct a HumanData instance from an npz file.
164
165 Args:
166 npz_path (str):
167 Path to a dumped npz file.
168
169 Returns:
170 HumanData:
171 A HumanData instance load from file.
172 """
173 ret_human_data = cls()
174 ret_human_data.load(npz_path)
175 return ret_human_data
176
177 @classmethod
178 def new(cls,

Callers 5

smooth_processFunction · 0.45
speed_up_processFunction · 0.45
get_speed_up_intervalFunction · 0.45
load_annotationsMethod · 0.45
init_modelFunction · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected