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

'_MultiProcessingDataLoaderIter' object has no attribute 'dataset' #16

Open
ffiioonnaa opened this issue Dec 16, 2019 · 1 comment
Open

Comments

@ffiioonnaa
Copy link

Hi,
Thanks for your excellent work! I encountered an error while running the training code
ProcessingTraceback (most recent call last):

  File "traineval.py", line 418, in <module>
    main(args)
  File "traineval.py", line 298, in main
    fig=fig,
  File "/home/zhao/obman_train/mano_train/netscripts/epochpass3d.py", line 71, in epoch_pass
    for batch_idx, (sample) in enumerate(loader):
  File "/home/zhao/obman_train/mano_train/datautils.py", line 18, in __next__
    if isinstance(loader.dataset, Subset):
AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'dataset'

and I try to use ' loader._dataset' instead of 'loader.dataset' ,then I met another error

  File "/home/zhao/obman_train/mano_train/networks/branches/manobranch.py", line 181, in forward
    root_palm=root_palm,
  File "/home/zhao/anaconda3/envs/obman_train/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/zhao/anaconda3/envs/obman_train/lib/python3.7/site-packages/manopth/manolayer.py", line 141, in forward
    self.th_hands_mean + th_full_hand_pose
RuntimeError: The size of tensor a (45) must match the size of tensor b (3) at non-singleton dimension 3

2019-12-16 14-51-34屏幕截图
2019-12-16 14-52-17屏幕截图

@toharl
Copy link

toharl commented Feb 2, 2020

pytorch 1.1.0 has solved the issue for me

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