MCPcopy
hub / github.com/Rudrabha/Wav2Lip / get_image_list

Function get_image_list

hparams.py:4–13  ·  view source on GitHub ↗
(data_root, split)

Source from the content-addressed store, hash-verified

2import os
3
4def get_image_list(data_root, split):
5 filelist = []
6
7 with open('filelists/{}.txt'.format(split)) as f:
8 for line in f:
9 line = line.strip()
10 if ' ' in line: line = line.split()[0]
11 filelist.append(os.path.join(data_root, line))
12
13 return filelist
14
15class HParams:
16 def __init__(self, **kwargs):

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected