Giter Site home page Giter Site logo

huailiang / face-nn Goto Github PK

View Code? Open in Web Editor NEW
473.0 17.0 143.0 129.44 MB

游戏捏脸,基于神经风格迁移框架生成逼真人脸

Home Page: https://huailiang.github.io/blog/2019/face/

License: MIT License

ShaderLab 3.15% C# 32.05% HLSL 32.18% Shell 0.01% Mask 3.57% Python 24.14% C 0.17% C++ 1.69% Cuda 3.05%
unity game-engine face-recognition neteasecloud neural-network cnn imitation-learning

face-nn's People

Contributors

huailiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

face-nn's Issues

Feature Extractor

我看到代码里面有“train_extractor”这个过程,但是在论文里面我没有找到相关介绍
image
你能说明一下这个网络结构吗?不胜感激!

是否可以基于3D头像来进行捏脸?

通过3D头像数据,数据本身包含深度信息,通过捏脸来实现不同的风格变换。
我这个头像就是3D扫描出来的,然后戴上虚拟的眼镜。我想在这个3D扫描的基础上在捏脸,改变太写实的人脸造型,这个是否会更好?
image

../dat/79999_iter.pth是哪来的呢

请问下这个../dat/79999_iter.pth是怎么来的呢
File "evaluate.py", line 130, in <module> img_1 = faceparsing_ndarray(image, '../dat/79999_iter.pth', cuda) File "evaluate.py", line 91, in faceparsing_ndarray build_net(cp, cuda) File "evaluate.py", line 81, in build_net _net_, _to_tensor_ = _build_net(cp, cuda) File "evaluate.py", line 61, in _build_net net.load_state_dict(torch.load(cp, map_location="cpu")) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/torch/serialization.py", line 382, in load f = open(f, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '../dat/79999_iter.pth'

error

Hi,when I do inference, it has errors like this:size mismatch for 0.0.weight: copying a param with shape torch.Size([95, 512, 4, 4]) from checkpoint, the shape in current model is torch.Size([99, 512, 4, 4]). If I change params_cnt from 99 to 95, it will has a new error:index 96 is out of bounds for dimension 1 with size 95, because of self.argmax_params(t_params.data, 96, 3). What should I do? Changing argmax_param or could you please share model which is 99 dimension. Looking forward to your reply!@huailiang

lightcnn怎么导入

ERROR: Could not find a version that satisfies the requirement lightcnn (from versions: none
)
ERROR: No matching distribution found for lightcnn

这里是不是应该把模型参数导入进来?新手玩家,问题太简单,多多谅解,麻烦了!

出来的效果特别差

Clipboard - 2021年12月31日下午5点53分
重新训练了imitator,看preview里面,imitator出来的效果是没问题的。
把图片输入align对齐后进行evaluate,导出的模型却差特别多,问题出在哪里?请教下谢谢!

如何增加新角色资源?

添加新的人物模型资源,制作更丰富的数据,好奇素材怎么准备,需要用到什么工具。 刚做这个,摸索中。

请教大佬

请教下,为啥您不是训练extractor_model(从image 到param),而是训练从param到image啊。

关于"79999_iter.pth"

您好,我下载了您的代码以及在readme.md中所提到的所有模型,并且尝试以evaluate模式运行代码。但是发现还是提示少了"79999_iter.pth"这个模型文件。请问您可以分享给我这个模型文件吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.