-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to render one of the fitted scenes on Ubuntu 22.04 LTS: A comprehensive guide. #34
Comments
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. |
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. |
Sorry for a late reply. I'm afraid I'm also not aware of what can help here. Does it happen only on |
Hi @seva100, It happens for other scenes as well
from the error message it seems there is something to do with the |
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
$ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
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.
The text was updated successfully, but these errors were encountered: