Hi,
I am following the steps to install this package and run the emoca demo (test_emoca_on_images), but unfortunately I am meeting some package conflicts (resolving them creates other conflicts, and so on). I tested multiple times on a Ubuntu 20.04 machine, as well as a windows machine using WSL and Ubuntu 20.04 as well.
Starting from scratch on Ubuntu 20.04, I first ran "install_38.sh". Running demos/test_emoca_on_images.py
I first meet a missing dependency:
File ".../dev/emoca/gdl/datasets/AffectNetDataModule.py", line 28, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Its weird since I see this dependency on conda-environment_py38_cu11_ubuntu.yml
. Looking at the installation output, mamba lists pandas as something to be installed, but it never installs it. Anyway, I manually installed it with pip install "pandas>=1.4.2"
Re-running the demo I find another issue:
File ".../miniconda3/envs/work38/lib/python3.8/site-packages/cv2/mat_wrapper/__init__.py", line 33, in <module>
cv._registerMatType(Mat)
AttributeError: partially initialized module 'cv2' has no attribute '_registerMatType' (most likely due to a circular import)
Again, this is strange since opencv is listed in the requirements file, one of the last things to be installed. Anyway, I re-installed it manually with pip install --ignore-installed "opencv-python~=4.5.5"
.
Trying again, I am hit with an potential problem with numpy x tensorboard version (looks like it's a part of the pytorch lightining installation):
File ".../envs/work38/lib/python3.8/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py", line 569, in <module>
(np.object, string),
File ".../envs/work38/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'object'.
`np.object` was a deprecated alias for the builtin `object`
I tried re-installing these components, but I just kept chasing more dependency issues. I was wondering if other people had similar issues during installation, and what can I do to install it. Thanks!