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

main function erroe #7

Open
mohanapriyamanik opened this issue Sep 30, 2020 · 1 comment
Open

main function erroe #7

mohanapriyamanik opened this issue Sep 30, 2020 · 1 comment

Comments

@mohanapriyamanik
Copy link

while running main im getting following error..pls help me to resolve as soon as possible

run
train at epoch 1
Traceback (most recent call last):
File "/content/drive/My Drive/video_decaptioning-master/main.py", line 214, in
train_loss, train_acc = train_epoch(i, train_loader, model, criterion, optimizer, opt, train_logger, train_batch_logger, viz, train_lot,netD, optimizerD, criterion2, netG, optimizerG, criterion3)
File "/content/drive/My Drive/video_decaptioning-master/train.py", line 60, in train_epoch
for i, (inputs, targets) in enumerate(Dataloader):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 637, in next
return self._process_next_batch(batch)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 658, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
RuntimeError: Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 138, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 138, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/content/drive/My Drive/video_decaptioning-master/video_decaptioning_data.py", line 177, in getitem
clip = torch.stack(clip, 0).permute(1, 0, 2, 3)
RuntimeError: expected a non-empty list of Tensors

@srivinodp
Copy link

are you converting to imgs using video.png first ?

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