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

Function load_data

utils.py:10–17  ·  view source on GitHub ↗
(input_data_path )

Source from the content-addressed store, hash-verified

8import random
9
10def load_data(input_data_path ):
11 with open(input_data_path) as f:
12 data_file_list = open(input_data_path, 'rt').read().splitlines()
13 # Get full list of color image and labels
14 file_image = [s.split(' ')[0] for s in data_file_list]
15 file_label = [int(s.split(' ')[1]) for s in data_file_list]
16
17 return file_image, file_label
18
19
20def GenIdx( train_color_label, train_thermal_label):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected