-
Notifications
You must be signed in to change notification settings - Fork 366
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 problem of train #103
Comments
#6 |
Now,I train the model using the following command,it occurs the error: |
@zhaojc001 |
when I run the following command,it appears the following problem.please help me:
python2 train_hopenet.py --dataset Pose_300W_LP --data_dir /opt/my/head_pose_estimate/300W_LP --filename_list /opt/my/head_pose_estimate/300W_LP/train.txt
Loading data.
/usr/local/lib/python2.7/dist-packages/torchvision/transforms/transforms.py:211: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead.
"please use transforms.Resize instead.")
Ready to train network.
train_hopenet.py:172: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
yaw_predicted = softmax(yaw)
train_hopenet.py:173: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
pitch_predicted = softmax(pitch)
train_hopenet.py:174: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
roll_predicted = softmax(roll)
/pytorch/aten/src/THCUNN/ClassNLLCriterion.cu:105: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [10,0,0] Assertion
t >= 0 && t < n_classes
failed.Traceback (most recent call last):
File "train_hopenet.py", line 180, in
loss_reg_yaw = reg_criterion(yaw_predicted, label_yaw_cont)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/loss.py", line 431, in forward
return F.mse_loss(input, target, reduction=self.reduction)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/functional.py", line 2190, in mse_loss
ret = torch._C._nn.mse_loss(expanded_input, expanded_target, _Reduction.get_enum(reduction))
RuntimeError: reduce failed to synchronize: device-side assert triggered
The text was updated successfully, but these errors were encountered: