MCPcopy Create free account
hub / github.com/apache/singa / load_image_path

Function load_image_path

examples/malaria_cnn/data/malaria.py:86–91  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

84
85
86def load_image_path(list):
87 new_list = []
88 for image_path in list:
89 if (image_path.endswith(".png") or image_path.endswith(".jpg")):
90 new_list.append(image_path)
91 return new_list
92
93
94def check_dataset_exist(dirpath):

Callers 2

load_train_dataFunction · 0.70
load_test_dataFunction · 0.70

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected