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

Method train_image_preprocess

python/graphvite/dataset.py:960–969  ·  view source on GitHub ↗
(self, image_path, save_file)

Source from the content-addressed store, hash-verified

958 return features
959
960 def train_image_preprocess(self, image_path, save_file):
961 tar_files = glob.glob(os.path.join(image_path, "*.tar"))
962 if len(tar_files) == 0:
963 return image_path
964
965 for tar_file in tar_files:
966 self.extract(tar_file)
967 os.remove(tar_file)
968
969 return image_path
970
971 def train_feature_data_preprocess(self, save_file):
972 numpy_file = os.path.splitext(save_file)[0] + ".npy"

Callers

nothing calls this directly

Calls 1

extractMethod · 0.80

Tested by

no test coverage detected