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

如何解决报错捏 #110

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

如何解决报错捏 #110

qiqi0308 opened this issue Dec 25, 2024 · 1 comment

Comments

@qiqi0308
Copy link

在训练数字人模型时,报错返回如下
E:\main_project\Ultralight-Digital-Human-master>python train.py --dataset_dir ./data_dir/ --save_dir ./checkpoint/ --asr hubert --use_syncnet --syncnet_checkpoint 5.pth
E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torchvision\models_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torchvision\models_utils.py:223: UserWarning: Arguments other than a weight enum or None for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing weights=VGG19_Weights.IMAGENET1K_V1. You can also use weights=VGG19_Weights.DEFAULT to get the most up-to-date weights.
warnings.warn(msg)
./data_dir/
(4613, 2, 1024)
4614
Epoch 1/200: 0%| | 0/4612 [00:00<?, ?img/s]E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch\nn\functional.py:1967: UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.
warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")
Epoch 1/200: 2%|▉ | 96/4612 [00:40<31:24, 2.40img/s, loss (batch)=0.465]
Traceback (most recent call last):
File "E:\main_project\Ultralight-Digital-Human-master\train.py", line 141, in
train(net, args.epochs, args.batchsize, args.lr)
File "E:\main_project\Ultralight-Digital-Human-master\train.py", line 96, in train
for batch in train_dataloader:
File "E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch\utils\data\dataloader.py", line 628, in next
data = self._next_data()
File "E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch\utils\data\dataloader.py", line 1313, in _next_data
return self._process_data(data)
File "E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch\utils\data\dataloader.py", line 1359, in _process_data
data.reraise()
File "E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch_utils.py", line 543, in reraise
raise exception
cv2.error: Caught error in DataLoader worker process 2.
Original Traceback (most recent call last):
File "E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch\utils\data_utils\worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch\utils\data_utils\fetch.py", line 58, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\main_project\Ultralight-Digital-Human-master\env\lib\site-packages\torch\utils\data_utils\fetch.py", line 58, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\main_project\Ultralight-Digital-Human-master\datasetsss.py", line 133, in getitem
img_concat_T, img_real_T = self.process_img(img, lms_path, img_ex, lms_path_ex)
File "E:\main_project\Ultralight-Digital-Human-master\datasetsss.py", line 111, in process_img
crop_img = cv2.resize(crop_img, (168, 168), cv2.INTER_AREA)
cv2.error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4152: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

@lordlxh
Copy link

lordlxh commented Jan 7, 2025

训练视频中有一些帧没有检测到人脸

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

2 participants