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

the error of train #85

Open
YangYu8510 opened this issue Dec 25, 2024 · 1 comment
Open

the error of train #85

YangYu8510 opened this issue Dec 25, 2024 · 1 comment

Comments

@YangYu8510
Copy link

Traceback (most recent call last):
File "E:\project\test\DH_live\train\train_render_model.py", line 104, in
for iteration, data in enumerate(training_data_loader):
File "E:\project\test\DH_live\py311\Lib\site-packages\torch\utils\data\dataloader.py", line 630, in next
data = self._next_data()
^^^^^^^^^^^^^^^^^
File "E:\project\test\DH_live\py311\Lib\site-packages\torch\utils\data\dataloader.py", line 673, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\project\test\DH_live\py311\Lib\site-packages\torch\utils\data_utils\fetch.py", line 52, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\project\test\DH_live\py311\Lib\site-packages\torch\utils\data_utils\fetch.py", line 52, in
data = [self.dataset[idx] for idx in possibly_batched_index]
~~~~~~~~~~~~^^^^^
File "E:\project\test\DH_live\talkingface\data\few_shot_dataset.py", line 151, in getitem
target_keypoints = self.driving_keypoints[video_index][current_clip]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
IndexError: index 150 is out of bounds for axis 0 with size 150

在训练时出现这个问题,但是当我测试第一轮的时候有些是正常的,现在大概是几十个视频,每个视频大概是5s

@YangYu8510
Copy link
Author

我是使用上百个6s的视频,然后第一轮没有问题,第二轮报错这个,然后减少视频数量,结果第一轮就报错了

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

1 participant