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

TypeError #7

Open
aliguran opened this issue Jun 26, 2023 · 1 comment
Open

TypeError #7

aliguran opened this issue Jun 26, 2023 · 1 comment

Comments

@aliguran
Copy link

Hello,

When I try to train a model with your own goo_real_data, I get this error. How can I fix it have you faced before? I just tried to train.

Start Train
Epoch 1/50: 0%| | 0/225 [00:07<?, ?it/s<class 'dict'>]
Traceback (most recent call last):
File "main.py", line 172, in
epoch_step, epoch_step_val, gen, gen_val, end_epoch, train_mode, Cuda)
File "/root/GaTector-A-Unified-Framework-for-Gaze-Object-Prediction/lib/utils/utils_fit.py", line 47, in fit_one_epoch
outputs = model_train(images, head, faces,train_mode)
File "/opt/conda/envs/Gatector/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/opt/conda/envs/Gatector/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 169, in forward
return self.gather(outputs, self.output_device)
File "/opt/conda/envs/Gatector/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 181, in gather
return gather(outputs, output_device, dim=self.dim)
File "/opt/conda/envs/Gatector/lib/python3.7/site-packages/torch/nn/parallel/scatter_gather.py", line 78, in gather
res = gather_map(outputs)
File "/opt/conda/envs/Gatector/lib/python3.7/site-packages/torch/nn/parallel/scatter_gather.py", line 73, in gather_map
return type(out)(map(gather_map, zip(*outputs)))
File "/opt/conda/envs/Gatector/lib/python3.7/site-packages/torch/nn/parallel/scatter_gather.py", line 73, in gather_map
return type(out)(map(gather_map, zip(*outputs)))
TypeError: zip argument #1 must support iteration

Thanks

@aliguran
Copy link
Author

I was able to start training with your goo_synth_data. There is no problem with it. The only problem is related to real data training.

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