ROMP icon indicating copy to clipboard operation
ROMP copied to clipboard

AttributeError: 'TRACE' object has no attribute 'smpl_model_path'

Open IotaCZE opened this issue 1 year ago • 1 comments

Hi, when trying to run trace inference, I am encountering this error:

File "/venv/bin/trace2", line 33, in <module>
    sys.exit(load_entry_point('simple-romp==2.0.2', 'console_scripts', 'trace2')())
  File "/venv/lib/python3.8/site-packages/simple_romp-2.0.2-py3.8-linux-x86_64.egg/trace2/main.py", line 141, in main
    trace.save_results(outputs, tracking_results, kp3d_results, imgpaths)
  File "/venv/lib/python3.8/site-packages/simple_romp-2.0.2-py3.8-linux-x86_64.egg/trace2/main.py", line 133, in save_results
    visualize_predictions(outputs[seq_name], imgpaths[seq_name], self.FOV, save_paths.seq_save_dir, self.smpl_model_path)
  File "/venv/lib/python3.8/site-packages/torch/nn/modules/module.py", line 947, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'TRACE' object has no attribute 'smpl_model_path'

I have just installed TRACE and am trying to reproduce infering the provided demo data (the parkour running man). This happens only when I am specifying --save_video. It also looks like no output file is produced to the specified location (no video nor .npz file). Other than that, inference looks running okay. Thanks

IotaCZE avatar Aug 29 '23 14:08 IotaCZE

You can change self.smpl_model_path in this line to self.smpl_path

nguyenquivinhquang avatar Oct 03 '23 21:10 nguyenquivinhquang