Hi everybody!
CaptionBot takes an image and generates a caption in less than 40 words. It is an implementation of the research paper “Show, Attend and Tell”.
You can check it here. Link for the source code here
Special thanks to Streamlit team, forums and @metasemantic for answering my doubts.
3 Likes
I gave it a go!
Looks like my is a and I never knew!
Love the app, very easy to use!
Happy Streamlit-ing!
Marisa
1 Like
Hi! Actually, the model does not work with cats well . It seems there are no images related to “cats” in Flickr30K dataset. In imageNet dataset also, dogs are more. Something like dogs and people work much better.
Example
Thanks for trying out!
1 Like
WHAT! no cats in Flickr30K!?!?
crazy!
Super cool! I hope this becomes standard, where researcher put up streamlit demos right away.
A few thoughts on the app:
1] Maybe include a link to the publication or model on the app? (Streamlit team, would be really nice if we could modify the footer HINT HINT @Marisa_Smith et al )
2] Auto generate the captions if an image is uploaded … I mean why not?
3] st.file_uploader(label= 'Upload Image', type = ['png', 'jpg', 'jpeg'])
why not webp? Dragging an image from another webpage sometimes uses that format and st can handle it just fine.
1 Like
@metasemantic met hahaha will pass along your very subtle suggestion!
2 Likes
@metasemantic psst. add your text in footer like this till then
import streamlit as st
st.markdown(
"""
<style>
footer:after {
content: " References: XYZ, ABC!" !important;
color: red !important;
font-size: 16px !important;
}
</style>
""",
unsafe_allow_html=True
)
It will look like this,
Hope it helps!
2 Likes