MotionGPT icon indicating copy to clipboard operation
MotionGPT copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory:

Open parkseongwon26 opened this issue 2 years ago • 3 comments

python demo.py --cfg ./configs/config_h3d_stage3.yaml --example ./demos/t2m.txt

FileNotFoundError: [Errno 2] No such file or directory: 'deps/t2m/t2m\VQVAEV3_CB1024_CMT_H1024_NRES3\meta\mean.npy'

But, I have this file. image

So, my file path is t2m folder is repeated 3 times

I followed the Quick Start guideline exactly, but is it just me?

parkseongwon26 avatar Oct 16 '23 12:10 parkseongwon26

Same as yours. The downloaded dataset seems to have some issues

Yawningx avatar Dec 07 '23 01:12 Yawningx

I fixed it by changing the paths in mGPT/data/HumanML3D.py

        # Mean and std of the dataset
        dis_data_root = pjoin(cfg.DATASET.HUMANML3D.MEAN_STD_PATH, 't2m/t2m', "VQVAEV3_CB1024_CMT_H1024_NRES3", "meta")
        self.hparams.mean = np.load(pjoin(dis_data_root, "mean.npy"))
        self.hparams.std = np.load(pjoin(dis_data_root, "std.npy"))
        
        # Mean and std for fair evaluation
        dis_data_root_eval = pjoin(cfg.DATASET.HUMANML3D.MEAN_STD_PATH, 't2m/t2m', "Comp_v6_KLD01", "meta")
        self.hparams.mean_eval = np.load(pjoin(dis_data_root_eval, "mean.npy"))
        self.hparams.std_eval = np.load(pjoin(dis_data_root_eval, "std.npy"))

and in configs/assets.yaml

DATASET:
  TASK_ROOT: deps/mGPT_instructions
  SMPL_PATH: deps/smpl
  TRANSFORM_PATH: deps/transforms/
  WORD_VERTILIZER_PATH: deps/t2m/glove/

hope it helps!

franknoh avatar Mar 13 '24 08:03 franknoh

paths in the configuration file need adjustment.

LiJiaxing0213 avatar May 23 '24 07:05 LiJiaxing0213