-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Mask returned in serverless automatic annotation does not agree with external result #7943
Comments
Hello, If you can reproduce it on one of functions already located in our repository, we will consider it as a bug. |
Unfortunately I was not. If possible, I would like to change the label to a documentation issue. |
This seems to be related to #6332 . Any chance you know in which piece of code the mask is parsed and applied to the input image? I'm finding that an input block mask ( |
Be sure you are sending correct borders. [0, 0, 500, 500] - will be incorrect in this case |
The borders are correct and are determined by Docker log output shows:
Edit:
|
Solution was found by utilizing the |
Actions before raising this issue
Steps to Reproduce
detector
function which produces a binary mask.results.append({ "type": "mask", "confidence": str(prob), "label": "Net", "mask": cvat_mask, })
where cvat_mask = binary_mask + [bounding box corners]
Expected Behavior
Expect CVAT to return an annotated image with the input binary mask applied, like the attached image. (These are the same inference results that go into CVAT).
Possible Solution
Documentation concerning the format required by CVAT in order for the binary mask to be properly handled.
Context
I've created a serverless function with my own pre-trained UNet model which returns masks for a given image by using PyTorch. When running inference on both my own machine and using Nuclio I am able to retrieve the same results as far as model outputs and mask details go.
However, when sending the mask in to CVAT, it returns a messy image:
This appears to be an issue with going from a binary mask to the RLE solution (https://github.com/cvat-ai/cvat/blob/develop/cvat/apps/lambda_manager/views.py, lines 738-743).
Environment
The text was updated successfully, but these errors were encountered: