MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / load_data

Function load_data

data_loader.py:383–390  ·  view source on GitHub ↗
(input_data_path)

Source from the content-addressed store, hash-verified

381
382
383def load_data(input_data_path):
384 with open(input_data_path) as f:
385 data_file_list = open(input_data_path, 'rt').read().splitlines()
386 # Get full list of image and labels
387 file_image = [s.split(' ')[0] for s in data_file_list]
388 file_label = [int(s.split(' ')[1]) for s in data_file_list]
389
390 return file_image, file_label

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected