百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

Deep3dPortrait

> 编程语言
开源

从单张图像生成深度 3D 人像

387 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

从单张图像生成深度 3D 人像

Deep 3d Portrait from a Single Image (CVPR2020)

This is a tensorflow implementation of the following paper: Deep 3d Portrait from a Single Image. We propose a two-step geometry learning scheme which first learn 3DMM face reconstruction from single images then learn to estimate hair and ear depth in a stereo setup.

Getting Started

System Requirements

  • Software: Ubuntu 16.04, CUDA 9.0
  • Python >= 3.5

Usage

  1. Clone the repository
bash
git clone https://github.com/sicxu/Deep3dPortrait.git
cd Deep3dPortrait
pip install -r requirements.txt
  1. Follow the intructions in Deep3DFaceReconstruction to prepare the BFM folder
  2. Download the pretrained face reconstruction model and depth estimation model, then put the pb files into the model folder.
  3. Run the following steps.
bash
python step1_recon_3d_face.py
python step2_face_segmentation.py
python step3_get_head_geometry.py
python step4_save_obj.py
  1. To check the results, see ./output subfolders which contain the results of corresponding steps.

Others

  • An image pre-alignment is necessary for face reconstruction. We recommend using Bulat et al.'s method to get facial landmarks (3D definition). We also need to use the masks of face, hair and ear as input to the depth estimation network. We recommend using Lin et al.'s method for semantic segmentation.
  • The face reconstruction code is heavily borrowed from Deep3DFaceReconstruction.
  • The render code is modified from tf_mesh_render. Note that the renderer we complied does not support other tensorflow versions and can only be used on Linux.
  • The manipulation code will not be released. If you want to make a comparison with our method, please use the results in our paper, or you can contact me([email protected]) for more comparisons.

Citation

If you find this code helpful for your research, please cite our paper.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言