Hello,
My apologies upfront if this is a naive question, new to pytorch, coming from keras/lasagne, but I haven’t had much luck searching for answers online so thought I would post here.
There is an implementation of Pytorch here. The model that we are using is cifar_shakeshake26 in architectures.py here.
We have tried to adapt their implementation to our dataset by adding our own model that would accept a 70x70 image. However, when we run, we get this error during validation:
INFO:main:--- training epoch in 13.531290054321289 seconds ---
INFO:main:Evaluating the primary model:
Traceback (most recent call last):
File "main.py", line 421, in <module>
main(RunContext(__file__, 0))
File "main.py", line 103, in main
prec1 = validate(eval_loader, model, validation_log, global_step, epoch + 1)
File "main.py", line 331, in validate
output1, output2 = model(input_var)
ValueError: too many values to unpack (expected 2)
What I don’t understand, is how model(input_var) is returning two variables.
If more information is needed to answer this question, please let me know and i’ll provide it.
Thank you in advance!
-Tommy