daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

Any reason you don't upload to Pypi ? #31

Closed Narsil closed 5 years ago

Narsil commented 5 years ago

It's just an idea but I think you could upload your package to Pypi, no ?

nkolot commented 5 years ago

I can do it at some point. I wanted first to fix some of the currently existing issues and maybe clean up some parts of the code as wekk. I tried to change as little as possible from the original repo when reimplementing it in PyTorch to avoid introducing bugs, but I think that some parts should be refactored.

Narsil commented 5 years ago

Any directions of what you want to do, in terms of refactoring/bugfixing ? I might be able to help

nkolot commented 5 years ago

We can discuss about it after the CVPR deadline. Thanks for offering to help.

Narsil commented 5 years ago

I have done some work on my fork where I removed the look/look_at/and K/R projection as I don't think they belong in the renderer.

First of all, the look/look_at ideas present a pretty big non-linearity when the camera goes from elevation0 to elevation 180 (basically the camera flips 180 when going across Up[0, 1, 0] direction). In OpenGL and other renderers, one manipulates directly rotations and translations, and the look_at paradigm is generally a bad practice IMO.

All tests are still passing.

What do you think about that direction ?