Skip to content

Commit

Permalink
Path problem fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
FeiiYin committed Jul 15, 2022
1 parent 0c9be1e commit 83b28c8
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 714 deletions.
2 changes: 1 addition & 1 deletion .idea/StyleHEAT.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Please download our [pre-trained model](https://drive.google.com/drive/folders/1
|checkpoints/stylegan2_d_256.pth | Pre-trained StyleGAN discriminator.
|checkpoints/model_ir_se50.pth | Pre-trained id-loss discriminator.
|checkpoints/StyleHEAT_visual.pt | Pre-trained StyleHEAT model.
|checkpoints/BFM.zip | 3DMM library. (Note the zip file should be unzipped to BFM/.)
|checkpoints/epoch_20.pth | Pre-trained 3DMM extractor.
|checkpoints/BFM | 3DMM library. (Note the zip file should be unzipped to BFM/.)
|checkpoints/Deep3D/epoch_20.pth | Pre-trained 3DMM extractor.

We also provide some example videos along with their corresponding 3dmm parameters in [videos.zip](https://drive.google.com/drive/folders/1-m47oPsa3kxjgK5eSJ8g8sHzG4zr2oRc?usp=sharing).
Please unzip and put them in `docs/demo/videos/` for later inference.
Expand Down
3 changes: 3 additions & 0 deletions configs/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
'styleheat': 'checkpoints/StyleHEAT_visual.pt',
# id_loss
'irse50': 'checkpoints/model_ir_se50.pth',
# 3DMM
'BFM': 'checkpoints/BFM',
'3DMM': 'checkpoints/Deep3D/epoch_20.pth',
}
1 change: 0 additions & 1 deletion loss/iterative_inversion_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def cal_p_norm_loss(self, latent_in):
def load_PCA_model(self):
device = 'cuda'
PCA_path = PRETRAINED_MODELS_PATH['FFHQ_PCA']
# PCA_path = '/apdcephfs/share_1290939/feiiyin/TH/Barbershop/pretrained_models/ffhq_PCA.npz'

PCA_model = np.load(PCA_path)
self.X_mean = torch.from_numpy(PCA_model['X_mean']).float().to(device)
Expand Down
159 changes: 0 additions & 159 deletions loss/sync_loss.py

This file was deleted.

62 changes: 0 additions & 62 deletions models/hfgi/test.py

This file was deleted.

Loading

0 comments on commit 83b28c8

Please sign in to comment.