rmokady / CLIP_prefix_caption

Simple image captioning model
MIT License
1.29k stars 214 forks source link

beamsearch lead to a worse result in inference script? #75

Open baiyuting opened 1 year ago

baiyuting commented 1 year ago

when I tried to use the same model to generate text through beamsearch and argmax, I found beamsearch get worse result. I use the generate_beam() and generate2() in clip_prefix_captioning_inference.ipynb to generate text. Is this a normal thing?