Hi,
I'm trying to reproduce this work.
I successfully create the dataset, but when try to train appears the next error:
Training Begins:
--------------------
* EPOCH : 0
0%| | 0/83 [00:00<?, ?it/s]/lib/python3.6/site-packages/torch/nn/functional.py:1320: UserWarning: nn.functional.tanh is deprecated. Use torch.tanh instead.
warnings.warn("nn.functional.tanh is deprecated. Use torch.tanh instead.")
Traceback (most recent call last):
File "train.py", line 155, in <module>
train_loop_handler.loop(epochs, output_path, load_best_checkpoint=start_from_last, save_all_checkpoints=False)
File "/src/pytorch_toolbox/pytorch_toolbox/train_loop.py", line 273, in loop
train_loss = self.train()
File "/src/pytorch_toolbox/pytorch_toolbox/train_loop.py", line 158, in train
callback.batch_(self.training_state)
File "/src/pytorch_toolbox/pytorch_toolbox/loop_callback_base.py", line 31, in batch_
self.batch(state)
TypeError: batch() missing 2 required positional arguments: 'network_inputs' and 'targets'
It looks like a pytorch version issue. Or something like that. Currently, I have installed the Pytorch version 1.0.1, which is the one in the requirements.txt file in pytorch_toolbox project.
Any suggestion to overpass this problem?
Hi,
I'm trying to reproduce this work.
I successfully create the dataset, but when try to train appears the next error:
It looks like a pytorch version issue. Or something like that. Currently, I have installed the Pytorch version 1.0.1, which is the one in the requirements.txt file in pytorch_toolbox project.
Any suggestion to overpass this problem?