ShapeFormer
ShapeFormer copied to clipboard
NameError: name 'plutil' is not defined
how can i solve this problem?
python -m shapeformer.trainer --opts configs/demo/demo_vqdif.yaml --gpu 0 --mode "run"
**** INFO **** Choosing GPUS: [0]
**** INFO **** Resetting GPUS ids to: [0]
**** INFO **** Running single opt file
Global seed set to 314
Traceback (most recent call last):
File "/.conda/envs/shapeformer/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/.conda/envs/shapeformer/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/ShapeFormer/shapeformer/trainer.py", line 353, in
It turns out this is due to the fact you are using a newer version of the xgutils library, where you can not import the utils by just from xgutils import *
.
To resolve this problem, you can simply using the xgutils at version b549310
, (which is also the commit number of branch 'shapeformer').
I have updated this repo, when you git clone --recursive [email protected]:QhelDIV/ShapeFormer.git
you should automatically get the right version of xgutils.
Hope this method works for you. If not so, feel free to put more information here.