GithubHelp home page GithubHelp logo

mingwuzheng / imface Goto Github PK

View Code? Open in Web Editor NEW
155.0 155.0 8.0 36.46 MB

The official code for "ImFace: A Nonlinear 3D Morphable Face Model with Implicit Neural Representations" presented at CVPR 2022, along with its extended version ImFace++.

License: MIT License

Python 100.00%

imface's People

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  avatar  avatar  avatar  avatar  avatar  avatar

imface's Issues

Custom Data - Input

Really great work! Was just wondering how to replicate this for custom data? (our own monocular videos)

attributes editing

In youtube video, you show that ImFace can control expressions and identities independently. But I never find the code about it. I guess we can change expression/identity embedding to edit attributes. Is that right?

How to plot reconstructed SDF as shown in Fig.1

Dear Mingwu,

Congratulation for your great work.
The Fig.1 in your paper is really fancy, could you please teach me how to plot SDF(different level sets) as shown in Fig.3.

Best,
Runsong

code

Hi, I would like to ask when will the code be open sourced?

Positional Encoding

Hi,

Thanks for your great work. It's really cool. There is one experimental detail that I felt a little confused about. Regarding the Positional Encoding, I noticed in the paper and supplementary materials that it was mentioned as being used, but when I checked the codes, it did not seem to be used during training. I'm not sure if I misunderstood something, so I really look forward to hearing from you and would appreciate it.

Thank you. Have a nice day!

reload models

Hi,

Thanks for your great work!

When I reloaded a model and continued to train, I got some errors:

assert len(optimizer_state["found_inf_per_device"]) > 0, "No inf checks were recorded for this optimizer."
AssertionError: No inf checks were recorded for this optimizer.

Did anyone face the same problem and solve it? Thanks!

Requirements outdated

Seems like most requirements (torch, torchvision ..etc.) are outdated.
Throws error message when pip install -r "requirement.txt"

Could those be updated, or does someone has a updated list of working requirements?

How to learn the five landmarks?

In your paper, you have specified the 5 landmarks located at the outer eye corners, mouth corners, and nose tip are utilized to describe the local regions. I wonder how to guide the landmark network to focus on these 5 local regions.

I am having a problem with offscreen rendering

Hello, I appreciate your outstanding efforts and the excellent work you've done.
Thank you.
When running the command:
python demo/process.py
as described in README.md, I encounter the following error:
`
/usr/local/lib/python3.8/site-packages/pymeshlab/init.py:41: UserWarning: Deprecated Filter Warning: You should use 'meshing_remove_unreferenced_vertices' instead of 'remove_unreferenced_vertices'. See https://pymeshlab.readthedocs.io/en/latest/index.html#filters-renaming
res_dict = self.apply_filter(name, **kwargs)
libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

Traceback (most recent call last):
File "/content/drive/MyDrive/ImFace-master/ImFace-master/data_preprocess/preprocess.py", line 111, in process_normal
surface_points, freespace_points = surface_point_cloud.sample_on_surface(
File "/content/drive/MyDrive/ImFace-master/ImFace-master/data_preprocess/surface_point_cloud.py", line 298, in sample_on_surface
surface_pcl = get_surface_point_cloud(mesh, surface_point_method, 1, scan_count,
File "/content/drive/MyDrive/ImFace-master/ImFace-master/data_preprocess/surface_point_cloud.py", line 210, in get_surface_point_cloud
return create_from_scans(mesh, bounding_radius=bounding_radius, scan_count=scan_count,
File "/content/drive/MyDrive/ImFace-master/ImFace-master/data_preprocess/surface_point_cloud.py", line 233, in create_from_scans
scans.append(Scan(mesh,
File "/usr/local/lib/python3.8/site-packages/mesh_to_sdf/scan.py", line 61, in init
color, depth = render_normal_and_depth_buffers(mesh, camera, self.camera_transform, resolution)
File "/usr/local/lib/python3.8/site-packages/mesh_to_sdf/pyrender_wrapper.py", line 58, in render_normal_and_depth_buffers
renderer = pyrender.OffscreenRenderer(resolution, resolution)
File "/usr/local/lib/python3.8/site-packages/pyrender/offscreen.py", line 31, in init
self._create()
File "/usr/local/lib/python3.8/site-packages/pyrender/offscreen.py", line 149, in _create
self._platform.init_context()
File "/usr/local/lib/python3.8/site-packages/pyrender/platforms/egl.py", line 177, in init_context
assert eglInitialize(self._egl_display, major, minor)
File "/usr/local/lib/python3.8/site-packages/OpenGL/platform/baseplatform.py", line 402, in call
return self( *args, **named )
File "/usr/local/lib/python3.8/site-packages/OpenGL/error.py", line 228, in glCheckError
raise GLError(
OpenGL.error.GLError: GLError(
err = 12289,
baseOperation = eglInitialize,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7e906074c7c0>,
c_long(0),
c_long(0),
),
result = 0
`
I would be very grateful if you could assist me with this.

from utils

Hi, I'm stumbling on this error :

ImportError: cannot import name 'fileio' from 'utils'

Could you tell me where is utils supposed to be ?

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.