Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "D:\Python38\lib\site-packages\ptpy\__init__.py", line 110, in __new__

plain_camera = plain(device=device)


 "D:\Python38\lib\site-packages\ptpy\ptp.py", line 712, in __init__

super(PTP, self).__init__(*args, **kwargs)


 "D:\Python38\lib\site-packages\ptpy\transports\usb.py", line 90, in __init__

else find_usb_cameras(name=name)


 "D:\Python38\lib\site-packages\ptpy\transports\usb.py", line 61, in find_usb_cameras

return usb.core.find(


 "D:\Python38\lib\site-packages\usb\core.py", line 1263, in find

raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available

Traceback (most recent call last):


 "examples/sample.py", line 88, in <module>

t.train(seq2seq, dataset, num_epochs=4, dev_data=dev_set, resume=opt.resume)


 "/root/pytorch-seq2seq/seq2seq/trainer/supervised_trainer.py", line 160, in train

resume=resume, dev_data=dev_data, teacher_forcing_ratio=teacher_forcing_ratio)


 "/root/pytorch-seq2seq/seq2seq/trainer/supervised_trainer.py", line 111, in _train_epoches

loss = self._train_batch(input_variables, target_variables, model, teacher_forcing_ratio)


 "/root/pytorch-seq2seq/seq2seq/trainer/supervised_trainer.py", line 74, in _train_batch

return loss.get_loss()


 "/root/pytorch-seq2seq/seq2seq/loss/loss.py", line 140, in get_loss

nll = super(Perplexity, self).get_loss()


 "/root/pytorch-seq2seq/seq2seq/loss/loss.py", line 109, in get_loss

return self.acc_loss.data[0] / self.norm_term
ZeroDivisionError: float division by zero
