Skip to content

Instantly share code, notes, and snippets.

View CathyLou's full-sized avatar
🎃
go in search of life

Cathy Lou CathyLou

🎃
go in search of life
  • Peking University
  • Beijing
View GitHub Profile
@qzane
qzane / make_dataset.py
Last active August 17, 2022 08:55
dataset maker for CIHP_PGN
# dataset maker for https://github.com/Engineering-Course/CIHP_PGN
# author: qzane@live.com
import os,sys,shutil
from PIL import Image
import numpy as np
DATA_TYPE = ['png','PNG','jpg','JPG']
def main():
USAGE = "python %s /path_to_images name_of_dataset" % sys.argv[0]