Skip to content
forked from suyuan945/HairNet

This is the implementation of HairNet using Pytorch.

License

Notifications You must be signed in to change notification settings

TuotuoLi/HairNet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HairNet

This is the implementation of HairNet: Single-View Hair Reconstruction using Convolutional Neural Networks using pytorch by rqm 2019.
Copyright@ Qiao-Mu(Albert) Ren. All Rights Reserved.

Requirement

  • pytorch
  • opencv
  • matplotlib

Preparation

Train

  • Note: this implementation only accounts for position loss and curvature loss.
  • The arguments of training are mode and project path.
  • An example bash to run this programme: python src/main.py --mode train --path '/home/albertren/Workspace/HairNet/HairNet-ren'
  • Weights of Neural Network will be saved in the subfolder 'weight' per 5 epochs.
  • Log will be saved in log.txt per 100 batches.
  • Hyperparameters are all setted according to the paper of HairNet.
    Epoch: 100 (origin: 500)
    Batch size: 32
    Learning rate: 1e-4(divided by 2 per 5 epochs, we change this setting according to our experiment)
    Optimization: Adam

Test

  • The arguments of training are mode, project path and weight path.
  • An example bash to run this programme: python src/main.py --mode test --path '/home/albertren/Workspace/HairNet/HairNet-ren' --weight '/home/albertren/Workspace/HairNet/HairNet-ren/weight/000001_weight.pt'

Acknowledgement

Thank ZZM for helping me train thie neural network on GPU machine and give me help in daily research.

About

This is the implementation of HairNet using Pytorch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%