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

执行 python syncnet.py 时报错 #105

Open
szdguai opened this issue Dec 19, 2024 · 0 comments
Open

执行 python syncnet.py 时报错 #105

szdguai opened this issue Dec 19, 2024 · 0 comments

Comments

@szdguai
Copy link

szdguai commented Dec 19, 2024

在 WSL 上执行的
(dh) sdd@DESKTOP-ACPHA5T:~/test/Ultralight-Digital-Human$ python syncnet.py --save_dir ./syncnet_ckpt/ --dataset_dir /home/sdd/test/Ultralight-Digital-Human/vedio/ --asr hubert
Traceback (most recent call last):
File "/home/sdd/test/Ultralight-Digital-Human/syncnet.py", line 258, in
train(opt.save_dir, opt.dataset_dir, opt.asr)
File "/home/sdd/test/Ultralight-Digital-Human/syncnet.py", line 229, in train
for batch in train_data_loader:
File "/home/sdd/anaconda3/envs/dh/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 628, in next
data = self._next_data()
File "/home/sdd/anaconda3/envs/dh/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1333, in _next_data
return self._process_data(data)
File "/home/sdd/anaconda3/envs/dh/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 1359, in _process_data
data.reraise()
File "/home/sdd/anaconda3/envs/dh/lib/python3.10/site-packages/torch/_utils.py", line 543, in reraise
raise exception
IndexError: Caught IndexError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/sdd/anaconda3/envs/dh/lib/python3.10/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/home/sdd/anaconda3/envs/dh/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 58, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/sdd/anaconda3/envs/dh/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 58, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/sdd/test/Ultralight-Digital-Human/syncnet.py", line 89, in getitem
img_ex = cv2.imread(self.img_path_list[ex_int])
IndexError: list index out of range

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