Hi, I stumbled upon this https://github.com/dogeplusplus/sam-at-home It does not seem to currently support sam2. I'm thinking it could be trivial to upgrade gradio and use sam2 and use it in your code :)