MCPcopy Create free account
hub / github.com/circuitnet/CircuitNet / vis_data

Function vis_data

feature_extraction/vis.py:36–43  ·  view source on GitHub ↗
(args, path_list)

Source from the content-addressed store, hash-verified

34 return result
35
36def vis_data(args, path_list):
37 feature_save_path = os.path.join(args.save_path)
38 if not os.path.exists(feature_save_path):
39 os.makedirs(feature_save_path)
40 for path in path_list:
41 name = os.path.basename(path)
42 feature = np.rot90(255 * std(np.load(path)), 1)
43 cv2.imwrite('%s/%s.jpg'%(feature_save_path,name), feature)
44
45def parse_args():
46 parser = argparse.ArgumentParser()

Callers

nothing calls this directly

Calls 1

stdFunction · 0.70

Tested by

no test coverage detected