232525 / PureT

Implementation of 'End-to-End Transformer Based Model for Image Captioning' [AAAI 2022]
63 stars 12 forks source link

question about "-1" and "0" #9

Open zml110120 opened 1 year ago

zml110120 commented 1 year ago

Dear author, I have a question.

What is the difference between "-1" in "TARGET_SENT" and "0" in "INPUT_SENT"? Just like the first image and second image? "-1" means padding and "0" means the end of sentence?

image image

232525 commented 1 year ago

Dear author, I have a question.

What is the difference between "-1" in "TARGET_SENT" and "0" in "INPUT_SENT"? Just like the first image and second image? "-1" means padding and "0" means the end of sentence?

image image

Right! And: "-1" in "TARGET_SENT" is convenient for computing loss.