Open mhdadk opened 2 years ago
Hi @mdabdk,
Your guide is amazing. Huge thanks for putting it all together in a single message -- hope it will be very useful to everyone who tries to run the code.
I suppose that some of the errors might have been GPU-specific (e.g. doing export LD_PRELOAD
or changing viewport size), but the rest seem to be quite universal. I'll look at it and see what should be changed in the code.
Thanks!
Hi @mhdadk , Thanks for sharing the steps.
After following your steps, I could able to see the person in the viewer. However, mousle click events are not working. I tried holding left click and dragging, right click and dragging nothing worked.
Do you have any remarks on that part?
Hi @mhdadk , Thanks for sharing the steps.
After following your steps, I could able to see the person in the viewer. However, mousle click events are not working. I tried holding left click and dragging, right click and dragging nothing worked.
Do you have any remarks on that part?
I don't unfortunately. Maybe @seva100 can help.
Hi @seva100 ,
I am using the viewer.py
which is shared by @mhdadk in the above comment. However, for me mouse click events are not working. I tried holding left click and dragging, right click and dragging nothing worked.
Am I missing anything?
Hi @vinodrajendran001,
Sorry for a late reply. I'm afraid I'm also not aware of what can help here. Does it happen only on Person 1
or other scenes too? Other people also mentioned something similar in another issue #17, but there are no details there, so can't reproduce it so far.
Hi @seva100,
It happens for other scenes as well
TypeError: on_mouse_release event was dispatched with 3 arguments, but handler on_mouse_release at src/models/npbg/viewer.py:441 has an incompatible function signature
from the error message it seems there is something to do with the viewer.py
file.
I've managed to render several of the fitted scenes on Ubuntu 22.04 LTS, with an NVIDIA GeForce 940MX GPU (2 GB RAM). However, I faced several challenges while doing so. Therefore, I am going to document these challenges with their solutions here in case someone finds them helpful.
Note: this guide was written based on commit 5bc6f8d18e61978f167f7dbb21787771fbd59bf6.
Step 0
Before starting, make sure you have
gcc
and OpenGL tools installed. Installing these will save you from dealing with a lot of problems later. This can be done by running:More details on how to install OpenGL can be found here.
Next, make sure you have an appropriate NVIDIA driver installed, and that you have CUDA installed. These can be installed via a quick google search.
Finally, make sure you have Anaconda installed.
Step 1
Clone the repository
then run
install_deps.sh
Step 2
Download the fitted scenes and the rendering network weights as described here. Place the
downloads
folder in the root directory (where theREADME.md
file is located).Step 3
As described in the
README.md
file, try running thePerson 1
fitted scene:This will likely not work, and you will observe an
AttributeError
:To fix this
AttributeError
, runTry to run the
Person 1
fitted scene again:However, this will not work again, and you will observe the following error:
The solution to this error can be found here. To fix this error, run
Again, try to run the
Person 1
fitted scene:Unfortunately, this will still throw an error:
The solution to this error can be found in this answer. To fix this error, run
One more time: try to run the
Person 1
fitted scene:Still not quite there yet. You will observe the following error:
The solution to this
RuntimeError
can be found in issue #12. To fix this error, replace the code inviewer.py
with the code given in the gist in this reply. In other words, here is the code to put intoviewer.py
:FINALLY, try to run the
Person 1
fitted scene again:Depending on how much RAM your GPU has, you may see a
CUDA out of memory
error:In this case, change the
viewport
parameter from2000,1328
to something smaller, like500,500
:This should now work. In case you see the message:
This just means that it is taking some time to load the render. Click on "Wait" and the render should load soon.