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

*_shape.npy files #11

Closed
numitors opened this issue Jan 12, 2018 · 4 comments
Closed

*_shape.npy files #11

numitors opened this issue Jan 12, 2018 · 4 comments

Comments

@numitors
Copy link

I wanted to retrain your model, have downloaded the 300W-LP dataset, but I am unable to find .npy files needed. I see that other datasets do not use them, so I tried to remove them the same way it is done for other datasets, but that causes an error. Any insight about this?

@developer-mayuan
Copy link

@numitors I don't think you need the .npy files. You just need to generate a list of files in the 300W-LP dataset, then the program will automatic load the .jpg and .mat file and preprocess the data and generate a Dataset class for it.

Following below is a filelist generated by myself.

filelist.txt

@numitors
Copy link
Author

numitors commented Jan 13, 2018

@developer-mayuan Thanks for the reply, this is exactly what I did, generated file list first, but when I run it I got the fillowing:

Epoch [1/5], Iter [100/7653] Losses: Yaw 9.6049, Pitch 4.4158, Roll 5.3993
Epoch [1/5], Iter [200/7653] Losses: Yaw 8.0809, Pitch 3.0956, Roll 2.6524
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:57: 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: [11,0,0] Assertion `t >= 0 && t < n_classes` failed.
CUDA error after cudaEventDestroy in future dtor: device-side assert triggeredTraceback (most recent call last):
  File "code/train_hopenet.py", line 169, in <module>
    loss_reg_yaw = reg_criterion(yaw_predicted, label_yaw_cont)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 224, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/loss.py", line 272, in forward
    return F.mse_loss(input, target, size_average=self.size_average)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/functional.py", line 819, in mse_loss
    return _functions.thnn.MSELoss.apply(input, target, size_average)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/_functions/thnn/auto.py", line 47, in forward
    output, *ctx.additional_args)
RuntimeError: cudaEventSynchronize in future::wait: device-side assert triggered

I thought something was wrong with my approach that is why I asked for help. Sometimes it crashes right away, sometimes after a minute or two.

@developer-mayuan
Copy link

developer-mayuan commented Jan 13, 2018

@numitors I think this is the problem I met before. You can refer to this closed issue.

@natanielruiz
Copy link
Owner

@developer-mayuan Thank you for your reply, I believe that issue will solve @numitors 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