-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use customized segmentation mask for test? #7
Comments
Yes the image should be torch.float32 and [-1,1] and mask should be of type int(), so it can be binary as well |
@Lotayou btw, if I understand correctly, to run this with a different segmentation model you are not only going to need a binary mask, but also the panoptic and semantic segmentation masks |
Yes, that is correct and if a different segmentation model is used the class mapping should match that of the trained model else a new model has to be trained. The pipeline @CesarERamosMedina is talking about is for the demo, however, I see the picture above from the model definition. |
I actually meant from the model itself. I think the code in your gradio app makes two calls to that function, one with a binary mask and one with a non-binary mask |
I want to replace the OneFormer used in your demo with some other segmentation models (for instance, SAM), now suppose I have
How should I modify the demo code to get correct structure and appearance guidance features? Thanks for your help in advance!
The text was updated successfully, but these errors were encountered: