Open Tiuuuuu opened 1 year ago
There is a question! In .flist,a picture is repeated twice,e.g. D:/shenduxuexi/generative_inpainting-master/training_data/training/C1A000206N000000000PAA.png D:/shenduxuexi/generative_inpainting-master/training_data/training/Img29836.png D:/shenduxuexi/generative_inpainting-master/training_data/training/C1A000206N000000000PAA.png IF you have 50 pictures in .training,train_shuffled .flist have 100 rows.
!/usr/bin/python
import pdb import argparse import os from random import shuffle
parser = argparse.ArgumentParser() parser.add_argument('--folder_path', default='D:/shenduxuexi/generative_inpainting-master/training_data', type=str, help='The folder path') parser.add_argument('--train_filename', default='D:/shenduxuexi/generative_inpainting-master/data_flist/train_shuffled.flist', type=str, help='The output filename.') parser.add_argument('--validation_filename', default='D:/shenduxuexi/generative_inpainting-master/data_flist/validation_shuffled.flist', type=str, help='The output filename.') parser.add_argument('--is_shuffled', default='1', type=int, help='Needed to shuffle')
if name == "main":
that is ok! in windows. But you should creat train_shuffled.flist and validation_shuffled.flist manually.