GithubHelp home page GithubHelp logo

Comments (5)

nkolot avatar nkolot commented on July 22, 2024

This depends on a lot of factors (i.e. mesh size, rendered image size, GPU model etc.). I don't know if there is a way to speed up significantly the backward computation time. Have you tried to run the original Chainer code released by the authors to see if there are any differences?

from neural_renderer.

Arthur151 avatar Arthur151 commented on July 22, 2024

Yes, I have just tried the original Chainer code with human body mesh (about 7000s vertices, 13000 faces, renderer image size 256*256) , the speed is on the same level (more or less) with yours....

from neural_renderer.

nkolot avatar nkolot commented on July 22, 2024

I am closing this issue for now.

from neural_renderer.

ypflll avatar ypflll commented on July 22, 2024

@Arthur151 Hi, Do you render an smpl model? I get more than 200ms when rasterize a silhouette, with no back computation. I wonder if something wrong in my code...
faces = torch.from_numpy(faces).cuda()
faces = [None,:,:]
ver = torch.from_numpy(ver).cuda()
ver = ver[None,:,:]
faces = nr.vertices_to_faces(ver, faces)
silhouettes = nr.rasterize_silhouettes(faces, 256, True)

If I use rederer like this (change to c++): https://github.com/YadiraF/PRNet/blob/master/utils/render.py
It only takes several ms.
I wonder if I can speed this up.

from neural_renderer.

DragonZzzz avatar DragonZzzz commented on July 22, 2024

@ypflll Have you solve this problem? I alse render the mesh very slowly.

from neural_renderer.

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.