The BLEU metric is a numerical metric used in image captioning.
They need to be implemented inside the src/models/metrics.py file (not sure if it is the correct place by the way).
I think this should not be implemented as a tensor metric that can be used by Tensorflow, but as a metric that has to be applied directly to strings.
Basically, we will provide the ground truth caption string and a string predicted by the model. How the prediction string is produced depends on the implementation to try: sampling, beam search, or max likelihood, but is not of interest for the BLEU Implementation.
The BLEU metric is a numerical metric used in image captioning.
They need to be implemented inside the
src/models/metrics.py
file (not sure if it is the correct place by the way). I think this should not be implemented as a tensor metric that can be used by Tensorflow, but as a metric that has to be applied directly to strings.Basically, we will provide the ground truth caption string and a string predicted by the model. How the prediction string is produced depends on the implementation to try: sampling, beam search, or max likelihood, but is not of interest for the BLEU Implementation.