benjiebob / SMALify

This repository contains an implementation for performing 3D animal (quadruped) reconstruction from a monocular image or video. The system adapts the pose (limb positions) and shape (animal type/height/weight) parameters for the SMAL deformable quadruped model, as well as camera parameters until the projected SMAL model aligns with 2D keypoints and silhouette segmentations extracted from the input frame(s).
106 stars 18 forks source link

from posemapper import posemap ModuleNotFoundError: No module named 'posemapper' #5

Closed monajalal closed 3 years ago

monajalal commented 3 years ago
(base) mona@mona:~/research/3danimals/SMALify$ python smal_fitter/optimize_to_joints.py

Bad key savefig.frameon in file /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle, line 421 ('savefig.frameon : True')
You probably need to get an updated matplotlibrc file from
https://github.com/matplotlib/matplotlib/blob/v3.3.2/matplotlibrc.template
or from the matplotlib source distribution

Bad key verbose.level in file /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle, line 472 ('verbose.level  : silent      # one of silent, helpful, debug, debug-annoying')
You probably need to get an updated matplotlibrc file from
https://github.com/matplotlib/matplotlib/blob/v3.3.2/matplotlibrc.template
or from the matplotlib source distribution

Bad key verbose.fileo in file /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle, line 473 ('verbose.fileo  : sys.stdout  # a log filename, sys.stdout or sys.stderr')
You probably need to get an updated matplotlibrc file from
https://github.com/matplotlib/matplotlib/blob/v3.3.2/matplotlibrc.template
or from the matplotlib source distribution
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: 
The text.latex.preview rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: 
The mathtext.fallback_to_cm rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: Support for setting the 'mathtext.fallback_to_cm' rcParam is deprecated since 3.3 and will be removed two minor releases later; use 'mathtext.fallback : 'cm' instead.
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: 
The validate_bool_maybe_none function was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: 
The savefig.jpeg_quality rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: 
The keymap.all_axes rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: 
The animation.avconv_path rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
In /home/mona/anaconda3/lib/python3.7/site-packages/matplotlib/mpl-data/stylelib/_classic_test.mplstyle: 
The animation.avconv_args rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
Traceback (most recent call last):
  File "smal_fitter/optimize_to_joints.py", line 10, in <module>
    from smal_fitter import SMALFitter
  File "/home/mona/research/3danimals/SMALify/smal_fitter/smal_fitter.py", line 19, in <module>
    from smal_model.smal_torch import SMAL
  File "/home/mona/research/3danimals/SMALify/smal_model/smal_torch.py", line 15, in <module>
    from .smal_basics import align_smal_template_to_symmetry_axis, get_smal_template
  File "/home/mona/research/3danimals/SMALify/smal_model/smal_basics.py", line 4, in <module>
    from smal_model.smpl_webuser.serialization import load_model
  File "/home/mona/research/3danimals/SMALify/smal_model/smpl_webuser/serialization.py", line 30, in <module>
    from posemapper import posemap
ModuleNotFoundError: No module named 'posemapper'
monajalal commented 3 years ago

add the folder that contains the smpl_webuser to the PYTHONPATH. If you want to add it permanently, open ~/.bashrc using vim, do CTRL+G to go end of file, and add this:

$ vi ~/.bashrc

CTRL+G

i

export PYTHONPATH="${PYTHONPATH}:/home/mona/research/3danimals/SMALify/smal_model/smpl_webuser"

ESC

:wq 

$ source ~/.bashrc
tritium21 commented 3 years ago

For the love of all that is holy, fix the import to use the full package import and let PYTHONPATH die quietly.

benjiebob commented 3 years ago

https://github.com/benjiebob/SMALify/issues/6#issuecomment-702278462