ggcnn
ggcnn copied to clipboard
About validate code
Dear Doug,
when I read your code, I have a question, hope u can help me. thanks a lot.
In train_ggcnn.py file's validate() function. when you store the model's val_loss, and you use the code below:
results['loss'] += loss.item()/ld
my question is why we should divide ld in there?
because I found you do not do the same thing in the train() function. you divide the batch_idx in the train() function.
I don't understand what causes the difference.
could u help me? thxxxxxx!!