IDEA-Research / DWPose

"Effective Whole-body Pose Estimation with Two-stages Distillation" (ICCV 2023, CV4Metaverse Workshop)
Apache License 2.0
2.05k stars 136 forks source link

Can not run train.py without dist_train.sh #61

Closed PengEC17 closed 7 months ago

PengEC17 commented 7 months ago

Hi, I get a problem when i tried to run train.py without dist_train.sh. I added the parent_dir of dist_train.sh in train.py by following codes:

script_dir = os.path.dirname(os.path.realpath(file)) parent_dir = os.path.abspath(os.path.join(script_dir, os.pardir))

if 'PYTHONPATH' in os.environ: os.environ['PYTHONPATH'] = parent_dir + ':' + os.environ['PYTHONPATH'] else: os.environ['PYTHONPATH'] = parent_dir

I run the command "python /home/xxx/DWPose/mmpose/tools/train.py --config configs/distiller/ubody/s2_dis/dwpose_l-ll__coco-ubody-256x192.py", it reports 'PoseEstimatorDistiller is not in the mmpose::model registry.

By the way, I can successfully run train.py with dist_train.sh

Can you tell me what I did wrong, pls~~~

yzd-v commented 7 months ago

When you bash dist_train.sh, you actually type the command in the shell. You can try to align the command you type with that in the train.sh. You can check more carefully. I do not know the error either.