yjh0410 2 年之前
父节点
当前提交
de95334193
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      dataset/scripts/data_to_h5py.py

+ 5 - 1
dataset/scripts/data_to_h5py.py

@@ -63,4 +63,8 @@ for i in range(len(dataset)):
     if args.show:
         cv2.imshow('image', image)
         # cv2.imwrite(str(i)+'.jpg', img)
-        cv2.waitKey(0)
+        cv2.waitKey(0)
+
+save_path = "dataset/cache/"
+os.makedirs(save_path, exist_ok=True)
+np.save(save_path + '{}_train_images.npy'.format(args.dataset))