iwtw / pytorch-TP-GAN

pytorch replicate of TP-GAN "Beyond Face Rotation: Global and Local Perception GAN for Photorealistic and Identity Preserving Frontal View Synthesis"
MIT License
94 stars 17 forks source link

have anyone run this code? how it performances? #4

Open hiredd opened 6 years ago

redaghanem commented 4 years ago

i am trying to run it but until now i get this error

/TP-GAN/net_input_everything_featparts.py in init(self, datasplit, Random, LOAD_60_LABEL, MIRROR_TO_ONE_SIDE, RANDOM_VERIFY, GENERATE_MASK, source, testing) 66 split_f = self.csvpath.format(source, self.split) 67 split_f_test = self.csvpath.format(source, 'test') ---> 68 self.indices = open(split_f, 'r').read().splitlines() 69 self.indices_test = open(split_f_test, 'r').read().splitlines() 70 self.size = len(self.indices)

FileNotFoundError: [Errno 2] No such file or directory: '/data/FS/train.csv'

redaghanem commented 4 years ago

log_file = open('/'.join( [tb.path,'train','log.txt'] ) , 'w' ) 24 ---> 25 train_img_list = open(config.train['train_img_list'],'r').read().split('\n') 26 train_img_list.pop() 27 val_img_list = open(config.train['val_img_list'],'r').read().split('\n')

FileNotFoundError: [Errno 2] No such file or directory: 'pretrain_train.list'

unrealgeometry commented 4 years ago

Code actually works, if you create image lists by yourself. Pick the right training protocol from original paper. For 90-degrees and for 60-degrees it is different.

redaghanem commented 4 years ago

Please can you tell me how to make this file and what structure of dataset should be

Floder subfolders files

Please help me

unrealgeometry commented 4 years ago
xiyichen commented 4 years ago

I am having trouble getting the MultiPIE dataset. How did you get it? When I clicked on their link it just says the page cannot be found.

unrealgeometry commented 4 years ago

MultiPIE is a private dataset. Maybe your scientific advisor can help if your work requires it.

zcxxlshirley commented 4 years ago

log_file = open('/'.join( [tb.path,'train','log.txt'] ) , 'w' ) 24 ---> 25 train_img_list = open(config.train['train_img_list'],'r').read().split('\n') 26 train_img_list.pop() 27 val_img_list = open(config.train['val_img_list'],'r').read().split('\n')

FileNotFoundError: [Errno 2] No such file or directory: 'pretrain_train.list'

Have you solved your problem? How did you solve it? about No such file or directory: 'pretrain_train.list' Thank U!

MahmoodHB commented 4 years ago

Hello to all. I am PhD student and developing the TPGAN code and if anyone interested in cooperating work with me to get better result. you can rech me via email or my github page. mahmood.bidir1985@gmail.com https://github.com/MahmoodHB