MCPcopy Create free account
hub / github.com/albertpumarola/GANimation / get_data

Function get_data

data/prepare_au_annotations.py:14–20  ·  view source on GitHub ↗
(filepaths)

Source from the content-addressed store, hash-verified

12args = parser.parse_args()
13
14def get_data(filepaths):
15 data = dict()
16 for filepath in tqdm(filepaths):
17 content = np.loadtxt(filepath, delimiter=', ', skiprows=1)
18 data[os.path.basename(filepath[:-4])] = content[2:19]
19
20 return data
21
22def save_dict(data, name):
23 with open(name + '.pkl', 'wb') as f:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected