Closed solitaryangler closed 2 years ago
I just realised that a similar problem was stated here - but for Google colab (same notebook - inverse_rendering.ipynb
):
https://github.com/tensorflow/graphics/issues/650
But I seem to be facing the same issue in a local install. How to resolve this?
Hi I was able to resolve this issue more or less. I thought of including my experience here for others while closing the issue.
The ticket that helped resolve my issue was: #535
--force-reinstall
flag while pip
installing tensorflow_graphics
to ensure that all dependencies were actually updated (including TF versions).tensorflow-graphics-gpu
is apparently deprecated: #152Basically I had two issues:
(i) OpenExr
doesn't always install correctly in all environments (like macos BigSur, or AWS EC2 Ubuntu), but I didn't even need it
(ii) I had to ensure that all dependencies were correctly updated by using the --force-reinstall
flag.
To summarise, this is what I could use:
OpenExr
:
wget https://github.com/AcademySoftwareFoundation/openexr/archive/v2.5.5.tar.gz
tar -xvf v2.5.5.tar.gz
cd openexr-2.5.5/
mkdir build
cd build
cmake ../
make
sudo make install
OpenExr
, I installed tensorflow_graphics
from source by commenting out the requirement for OpenExr
, following again #535:
git clone https://github.com/tensorflow/graphics.git
cd graphics
# XXX MANUAL: Comment out OpenEXR in requirements.txt XXX
python setup.py sdist bdist_wheel # Build pip pkg.
pip install --upgrade dist/*.whl --force-reinstall
Note that you have to use setup.py
instead of build_pip_pkg.sh
as per the documentation.
Whether I installed tensorflow-graphics
from source or pip
I had to use the --force-reinstall
flag.
Caveat: the --force-reinstall
flag sometimes updates keras
to version 2.7
which has other issues, so after everything I had to (sometimes) downgrade keras
to 2.6.*
by running
pip install keras==2.6.*
Thanks to the developers again for this fabulous work!
Is this still supposed to work? I tried following your steps but I still get the error:
File "/Users/foo/miniforge3/envs/tensorflow-graphics/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterization_backend.py", line 30, in
NotFoundError: dlopen(/Users/foo/miniforge3/envs/tensorflow-graphics/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterizer_op.so, 0x0006): tried: '/Users/foo/miniforge3/envs/tensorflow-graphics/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterizer_op.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/foo/miniforge3/envs/tensorflow-graphics/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterizer_op.so' (no such file), '/Users/foo/miniforge3/envs/tensorflow-graphics/lib/python3.10/site-packages/tensorflow_graphics/rendering/opengl/rasterizer_op.so' (no such file)
Hi,
sincere thanks for developing this TF module. I use TF quite a bit but this is my first time with TF_graphics. I am getting the following error when trying to run
inverse_rendering.ipynb
locally on my machine - in particular this occurs in theRun Optimization
cell:My environment:
What am I missing out? Your help will be greatly appreciated! Thanks again for this superb effort.