kohjingyu/fromage

Hello, I wanna konw the purpose of create_image_of_text

SZhanZ opened this issue · 2 comments

SZhanZ commented

Hello, I notice that there is a method called 'create_image_of_text' in utils.py. I can be aware of its function to draw a picture with the text caption, but cannot understand its role in the code where it is be called. Could you plz explain the purpose to set it? Thanks in advance~
image

Actually, this code is just for visualization purposes, it writes the image and the generated caption into Tensorboard outputs (https://github.com/kohjingyu/fromage/blob/main/fromage/evaluate.py#L180-L190). It is not used in the forward pass of the model.

Hope that makes sense!

SZhanZ commented

okay~ thanks alot