dougsm / ggcnn

Generative Grasping CNN from "Closing the Loop for Robotic Grasping: A Real-time, Generative Grasp Synthesis Approach" (RSS 2018)
BSD 3-Clause "New" or "Revised" License
499 stars 140 forks source link

About validate code #36

Open catisthebest opened 3 years ago

catisthebest commented 3 years ago

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!!