Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Training Error】 IndexError: list index out of range #112

Open
JunZhan2000 opened this issue Apr 11, 2024 · 2 comments
Open

【Training Error】 IndexError: list index out of range #112

JunZhan2000 opened this issue Apr 11, 2024 · 2 comments

Comments

@JunZhan2000
Copy link

JunZhan2000 commented Apr 11, 2024

Traceback (most recent call last): | 0/1 [00:00<?, ?it/s]
File "audio2video/AniPortrait/train_stage_1.py", line 762, in main(config)
File "audio2video/AniPortrait/train_stage_1.py", line 654, in main sample_dicts = log_validation(
File "audio2video/AniPortrait/train_stage_1.py", line 169, in log_validation sample = valid_dataset[idx]
File "audio2video/AniPortrait/src/dataset/dataset_face.py", line 157, in getitem ref_img, pixel_values_pose, tar_gt, pixel_values_ref_pose = self.get_batch_wo_pose(idx)
File "AniPortrait/src/dataset/dataset_face.py", line 90, in get_batch_wo_pose
video_name = self.data_dic_name_list[index]
IndexError: list index out of range

Occasionally occurs during training, seems to be related to the size of the data.

@Zejun-Yang
Copy link
Owner

Seems the length of self.data_dic_name_list is abnormal. Please check if your dataset json file is correct.

@Mxwgreat
Copy link

Mxwgreat commented May 9, 2024

@JunZhan2000 Hi, I also encountered the same problem as you. Have you solved your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants