Feature request: get objects after they have been created
See original GitHub issueMy actions before raising this issue
- Read/searched the docs
- Searched past issues
I am trying to create a set of points and group them using the reducers createAnnotationsAsync
and groupAnnotationsAsync
in the following way:
onCreateAnnotationsAndGrouping(sessionInstance: any, frame: number, states: any[]): Promise<void> {
return dispatch(createAnnotationsAsync(sessionInstance, frame, states))
.then(() => dispatch(groupAnnotationsAsync(sessionInstance, frame, states)))
}
When executing groupAnnotationsAsync
the following error is displayed:
Error: The object has not been saved yet. Call annotations.put([state]) before
I have tried setting a timeout before grouping takes place but the same error appears.
The grouping tool works well when I do it by hand.
Expected Behaviour
It should group the points and do not throw any errors.
Current Behaviour
An error is thrown and no grouping occurs.
Possible Solution
I think it should be a bug on the cavt-core
API that is causing this. But I can’t be sure.
Steps to Reproduce (for bugs)
The code is already shown.
Context
I am trying to develop a way to annotate human pose using keypoints. Right now the approach can lead to pitfalls because you are not forced or encouraged to use correct labels in your annotation process. For now, I just want to programmatically add this points and group them in order to have a template for the human figure.
Eventually, I would like to add a template designer and create a model on the backend side.
It will be good to create a new shape that assembles these graph structures as well.
Your Environment
- Git hash commit (
git log -1
): 81a13cb - Docker version
docker version
(e.g. Docker 17.0.05): Not using docker for the development environment but,18.09.5
- Are you using Docker Swarm or Kubernetes? No
- Operating System and version (e.g. Linux, Windows,):
uname -srvo
:Linux 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 GNU/Linux
Next steps
I already asked this question on Gitter
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
@frndmg
In your example you pass
states
togroupAnnotationsAsync
that weren’t saved in collection (message is about it). It’s wrong using of cvat-core API.Calling of
job.annotations.put(states)
(inside createAnnotationsAsync) returns states saved in collection. You should group them instead of.Sure. Not at all