how to use segment for objects?

#3
by paul91 - opened

how to use segment objects? Do not find reference codes?

Google org

Hello 👋 the model outputs segmentation tokens, and then there's a separate neural network to decode it to a segmentation mask. In this demo you can see I put the code in parts and one part consists of utils to do it, and there's a separate segmentation parsing function to parse inference output. Does it sound good?

This comment has been hidden

Hi @paul91 ,

Sorry for late response, Using segment objects in a model like Paligemma-3B-PT-896 likely involves preparing your input in chunks (segments) and ensuring the model processes each chunk appropriately, either with segment embeddings or chunk-wise processing. If you’re working with a transformer-based model, make sure to structure your input with segment IDs if needed, and handle chunking and padding to fit the model's input size limitations. Kindly try and let me know if you have any concerns.

Thank you.

Sign up or log in to comment