Open Quartenia opened 3 years ago
Thanks very much for reporting this; I am able to reproduce the error. Tagging @OllieBoyne. One of us will fix soon!
Thank you for the quick reply @benjiebob !
Would there be a workaround by changing something in my setup?
Yes of course, the basic workaround is to just install the packages manually. I'd recommend installing PyTorch first. Afterwards, these commands should cover the rest (sorry if I've forgotten a couple... if so, please could you let me know below):
pip install "git+https://github.com/facebookresearch/pytorch3d.git"
pip install matplotlib opencv-contrib-python scipy nibabel tqdm trimesh imageio ffmpeg cython chumpy
python -m pip install "git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI"
If you happen to see a GCC related error when you install pytorch3d (the first of the 3 commands above), make sure you have a recent gcc version installed. I tend to use conda packages to upgrade:
conda install -c omgarcia isl
conda install -c creditx gcc-7
After this, you should be able to run the commands above as normal
I got it to work but i got this error:
Traceback (most recent call last):
File "smal_fitter/optimize_to_joints.py", line 147, in <module>
main()
File "smal_fitter/optimize_to_joints.py", line 140, in main
model.generate_visualization(image_exporter)
File "/root/SMALify/smal_fitter/smal_fitter.py", line 210, in generate_visualization
rot_matrix = torch.from_numpy(R.from_euler('y', 180.0, degrees=True).as_dcm()).float().to(self.device)
AttributeError: 'scipy.spatial.transform.rotation.Rotation' object has no attribute 'as_dcm'
which I fixed by installing pip install scipy==1.5.2
which is the version listed in the requirements.txt.
Apparently as_dcm
does not work with scipy 1.6.0, which was installed with pip install matplotlib opencv-contrib-python scipy nibabel tqdm trimesh imageio ffmpeg cython chumpy
as you suggested.
Hi! I'm experiencing some issues creating the environment using miniconda on Linux using the
requirements.txt
file. The installed Miniconda version isconda 4.9.2
onUbuntu 18.04.4 LTS
.I've not much experience with Anaconda and Linux so I'm not sure if I'm missing anything.
The error I'm getting when running the command
conda create --name env_smalify --file requirements.txt
is: