MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / __init__

Method __init__

CV/PaddleFSL/dataloader/cub.py:10–18  ·  view source on GitHub ↗
(self,mode)

Source from the content-addressed store, hash-verified

8
9class LoadData():
10 def __init__(self,mode):
11 self.mode = mode
12 self.datafile = 'data/cub/cub_' + self.mode + '.pkl'
13 print('loading cub dataset from {} ......'.format(self.datafile))
14 with open(self.datafile, "rb") as f:
15 data = pkl.load(f)
16 self.data = data['data']
17 self.label = data['label']
18 print('cub dataset {} load done'.format(self.mode))
19
20 def __getitem__(self, index):
21 # img_files, label = self.data[index], self.label[index]

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected