salaniz / pytorch-gve-lrcn

PyTorch implementations for "Generating Visual Explanations" (GVE) and "Long-term Recurrent Convolutional Networks" (LRCN)
MIT License
92 stars 22 forks source link

on eval mode, ground truth labels are concatenated with image_features! #19

Open hannahgym opened 3 years ago

hannahgym commented 3 years ago

here code , ground truth labels are passed to the model on eval mode!!!!

could you please correct me if i am wrong?

thanks.

katelyn98 commented 1 year ago

The ids are only used to generate the results dictionary in eval mode, the ids are not being passed into the model.generate_sentence call. See line here in lcrn_trainer.py

katelyn98 commented 1 year ago

Sorry, nevermind...you are right. The ground truth labels are appended to the image features and passed into the evaluation....not sure where to go from here then...