Closed confifu closed 3 years ago
As far as I can remember, you can do it with some steps.
@Zhangjinso Hi, in line 223 of generator_texture_transfer.py, what is the meaning of "if False"? Don't we need to execute indented codes under if?(line 223-265)Thanks!
Yes. The texture transfer model does not used spatio-aware normalization module for the convenience of training. If you want to get better results, you can retrain the model with this.
Pose transfer results using the pre-trained checkpoint are not as good as shown in the paper. Were different checkpoints used to get the results shown in the paper?
You can refer to this issue.
What should be self.input_SPL3
? SPL2_onehot
has shape [8, 256, 256]
. Do we also need to input one hot vector in input_SPL3 as well? Do we only have to leave the region for which we want the texture transfer?
If anyone wants to do this, To keep the pose same and only transfer texture, I did the following:
Change the following line
https://github.com/Zhangjinso/PISE/blob/f9dfacb16db99420a5a51bf7e0fd2a632466b701/data/base_dataset.py#L136
to return {'P1': P1, 'BP1': BP1, 'P2': P1, 'BP2': BP1,'SPL1': SPL1_onehot, 'SPL2':SPL1_onehot, 'label_P2': SPL1, 'P1_path': P1_name, 'P2_path': P1_name, 'P3' : P2, 'SPL3' : SPL2_onehot}
To change the part
for which you want to transfer texture, edit the following line
https://github.com/Zhangjinso/PISE/blob/f9dfacb16db99420a5a51bf7e0fd2a632466b701/model/networks/generator_texture_transfer.py#L186
to codes_vector[0,part,:] = (1-alpha)*codes_vector[0,part,:]+alpha*_codes_vector[0,part,:]
set alpha = 1
and part
= 0 to 8
After following your instruction for texture transfer model testing, I cannot get the desired result in the paper @eternitjl @Zhangjinso Do you know what step I miss or make a mistake
After following your instruction for texture transfer model testing, I cannot get the desired result in the paper @eternitjl @Zhangjinso Do you know what step I miss or make a mistake
@mlyarthur Hi,have you solved it? I have a similar problem
I want to test only the texture transfer model. It is mentioned that the model needs to be changed. How should I change it? What inputs are needed to test the texture transfer model?