c-he / perm

Official implementation of "Perm: A Parametric Representation for Multi-Style 3D Hair Modeling"
MIT License
67 stars 2 forks source link

problems about generate results #4

Open XiaokunSun opened 1 month ago

XiaokunSun commented 1 month ago

Thank you for your excellent work! I run python src/gen_samples.py --outdir=out --model={model_folder} --roots=data/roots/rootPositions_10k.txt --head_mesh=data/head.obj --seeds=0-99 --trunc=0.8 and then get the hair and noticed that the generated result has too short hair and messy hair, is this normal? Also what is the significance of "--trunc" and "--trunc-cutoff" in the gen_samples.py ? QQ20240915-125415 QQ20240915-125435

c-he commented 1 month ago

Hi, thanks for your interest in our work!

  1. The flyaway strands in Fig. 1 are normal. It's indeed a phenomenon we can observe in real hairstyles, like「呆毛」
  2. These very short strands are caused by PCA decoding, as they can not fully recover zero-length strands. You can filter them with our provided scripts, see: https://github.com/c-he/perm?tab=readme-ov-file#rendering.
  3. We don't have an extensive ablation on trunc and trunc-cutoff, so we just pick a common value used in StyleGAN/EG3D.
XiaokunSun commented 1 month ago

Thank you for your reply! One last question, when will you open source the hair reconstruction code? I am very interested in this application! Or can you open source the code about “attach a cylinder mesh onto each strand segment”? Thank you!

c-he commented 1 month ago

Sure please stay tuned! I'm now working on other projects, but I think I will release it (at least the cylinder code) later this year.

XiaokunSun commented 1 month ago

Thank you for your reply! I'm very much looking forward to it!