MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / load_images

Method load_images

python/graphvite/dataset.py:816–822  ·  view source on GitHub ↗
(self, *batch_files)

Source from the content-addressed store, hash-verified

814 )
815
816 def load_images(self, *batch_files):
817 images = []
818 for batch_file in batch_files:
819 batch = np.fromfile(batch_file, dtype=np.uint8)
820 batch = batch.reshape(-1, 32*32*3 + 1)
821 images.append(batch[:, 1:])
822 return np.concatenate(images)
823
824 def load_labels(self, meta_file, *batch_files):
825 classes = []

Callers 2

Calls

no outgoing calls

Tested by 1