AniPortrait icon indicating copy to clipboard operation
AniPortrait copied to clipboard

Train Stage 1 Enumeration Error

Open pranav-ap opened this issue 1 year ago • 1 comments

I am using the CelebVHQ dataset. I ran their preprocessing script. Then extracted the frames into seperate folders - one folder per video.

But when I run the train stage 1 script, I get the following error. Has anyone faced this before?

image

A truncated version of the training json file looks like this.

{
    "vtznSlhouZc_1": {
        "video_clip_num": 1,
        "clip_data_list": [
            {
                "frame_name_list": [
                    "vtznSlhouZc_1\\1.jpg",
                    "vtznSlhouZc_1\\2.jpg",
                ],
                "frame_path_list": [
                    "F:\\AniPortrait\\data\\praw\\vtznSlhouZc_1\\1.jpg",
                    "F:\\AniPortrait\\data\\praw\\vtznSlhouZc_1\\2.jpg",
                ],
                "lmks_list": [
                    "F:\\AniPortrait\\data\\ppost\\vtznSlhouZc_1\\1_lmks.npy",
                    "F:\\AniPortrait\\data\\ppost\\vtznSlhouZc_1\\2_lmks.npy",
                ]
            }
        ]
    }
}

I tried using next() just to test it out,

image

So I tried out iter() too,

image

pranav-ap avatar Apr 22 '24 12:04 pranav-ap

You can try to refer to our dataset processing code (scripts/preprocess_dataset.py).

Zejun-Yang avatar Apr 25 '24 03:04 Zejun-Yang