Git Product home page Git Product logo

Comments (3)

lixiny avatar lixiny commented on May 25, 2024

I also witnessed a slightly offset on the mask/depth rendering, but it is not as much as your illustration.
Here is my results. ( 00005896.jpg )
截屏2022-05-14 15 53 14
img, rendered depth from verts, depth + joints, masks.

from freihand.

ZhengdiYu avatar ZhengdiYu commented on May 25, 2024

What kind of rendering method are you using? And what is your MANO model? I use (https://github.com/hassony2/manopth) to get a mesh in camera coordinate system by:

        uv_root, scale = mano[:, 58:60], mano[:, 60:]
        focal, pp = get_focal_pp(K)
        xyz_root = recover_root(uv_root, scale, focal, pp)

        mano_pose = torch.FloatTensor(pose).to(DEVICE)#.view(-1, 3)
        shape = torch.FloatTensor(shape).to(DEVICE)#.view(1, -1)

        assert mano_pose.size() == torch.Size((1, 48)), mano_pose.size()
        assert shape.size() == torch.Size((1, 10)), shape.size()
        output = mano_layer['r'](mano_pose, th_betas=shape) # already root-aligned in manolayer
        joints = output[1][0].cpu().detach().numpy()
        mesh = output[0][0].cpu().detach().numpy()

        trans = xyz_root[0] - joints[9]
        trans = trans[None]
        mesh = mesh + trans
        joints = joints + trans

        # milimeter
        #mesh = (output.vertices[0] * 1000).cpu().detach().numpy() # smplx
        mesh = (mesh * 1000)

from freihand.

ZhengdiYu avatar ZhengdiYu commented on May 25, 2024

For most of cases, there are offsets. And of some of them, the offsets are acceptable:
image

image
image
image

from freihand.

Related Issues (20)

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.