question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: get objects after they have been created

See original GitHub issue

My 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bsekachevcommented, May 5, 2020

@frndmg

In your example you pass states to groupAnnotationsAsync 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.

0reactions
bsekachevcommented, May 5, 2020

I assume it should be allObjects on the last line.

Sure. Not at all

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Handle Feature Requests - The Ultimate Guide ...
How to track and manage feature requests in an organized and systematic way, all leading to better product execution.
Read more >
Advanced Usage — Requests 2.28.1 documentation
This document covers some of Requests more advanced features. Session Objects¶. The Session object allows you to persist certain parameters across requests. It...
Read more >
10 SQL Server Feature Requests I've Upvoted Recently
Doesn't have to be all objects – could be just objects created with a FOR REPLICATION option kinda like how replication does it,...
Read more >
3 ways to manage software feature request
The best way to keep feature requests in one place is to set up a centralized repository. Whether a feature request is received...
Read more >
Feature requests - Please read before requesting something
I 'll leave this post open for a while but once it's open please post your suggestions there so you get the credit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found