-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Deploy skeleton model on CVAT for auto and semi annotations #5177
Comments
Probably client code is not prepared to expect skeletons from serverless response because we didn't have such models in the past. Are you going to contribute the model to open source? |
I create a simple skeleton template and use Draw new skeleton to draw it. I use F12 and press save, so I can have a response and check that json response. I try writing code similarity rectangle and polygon type based on this json. But I get: Cannot read properties of null (reading 'every') ERROR. I think elements attribute is null because I find some function call with every (image below). |
I am not sure I understand you correctly, but SkeletonShape is expected to have the following structure id?: number; // optional, only when get the shape from the server
clientID?: number; // optional, may be null if the object has been just created and is being added to the collection
label_id: number;
group: number;
frame: number;
source: 'manual' | 'auto';
attributes: { spec_id: number; value: string }[];
elements: {
id?: number;
attributes: { spec_id: number; value: string }[];
label_id: number;
occluded: boolean;
outside: boolean;
points: number[];
type: ShapeType;
}[];
occluded: boolean;
outside: boolean;
rotation: number;
z_order: number;
type: ShapeType; |
Thanks, In my example, I create a simple skeleton template, it has two points, I have some questions: First, When I use Draw new skeleton, it contain two points with a bounding box, when I try log the annotations object in cvat-ui/src/components/annotation-page/canvas/canvas-wrapper.tsx folder (you can see in jsonformatter.txt file). I can see the points attributes with 4 point of bounding box. Can I just only need to return the SkeletonShape format. Second, I try to write serverless function in function.yaml and main.py. In function.yaml, the annotations.spec define the label, |
Do I need to define svg template for skeleton label?
Just example. If we have in CVAT skeleton body with elements right_leg and left_leg. I expect serverless output be like:
I do not see reasons to have additional specs, at least for now.. |
@OnceUponATimeMathley , please don't hesitate to contact us if you decide to contribute. We will try to help. I will close the issue for now. I don't know how we can help here. |
My actions before raising this issue
Expected Behaviour
Current Behaviour
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
git log -1
):docker version
(e.g. Docker 17.0.05):Logs from `cvat` container
I try to write code for http response for skeleton type annotations on CVAT for deploy deep learning model but get the Could not create annotations
TypeError: Cannot read properties of null (reading 'every'). I also check the annotations.json file in cvat/apps/dataset_manager/tests/assets/annotations.json folder and the attributes is same, open F12 and check response has the same. Can everyone help me. Thanks
The text was updated successfully, but these errors were encountered: