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.

Action to select metadata keys that are required

See original GitHub issue

A lot of metadata is sent over at each controller step, but not all this metadata is required.

  1. Is it possible to set the scope of metadata returned by the server on the fly (as a controller action).
  2. Will this make things faster because less data needs to be sent over, or is this not a speed bottleneck (compared to sending over frame/segmentation tensors etc)?

I could have sworn I saw something about this in an issue/pull request, but I can’t find it now. Sorry if this is a duplicate.


For example, if I don’t care about the agent, or scene bounds, or specific properties of objects.

controller.step(
  "UpdateRequiredMetadata",
  meta_keys={
    'agent': False, 
    'sceneBounds': False,
    'objects':{'axisAlignedBoundingBox': False, 'mass': False}
  }
)

or if I ONLY care about specific object types?

controller.step(
  "UpdateRequiredMetadata",
  obj_types={
    'Painting': False, 
    'DeskLamp': False,
  }
)

but later down the line, I change my mind and I do want info about one of them

controller.step(
  "UpdateRequiredMetadata",
  obj_types={
    'DeskLamp': True,
  }
)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Tushar-Ncommented, Mar 16, 2021

Reopening this to say that it would be nice to have some extra functionality for this class of actions. For example:

  • setting object filters based on objectType, rather than Id. Right now if I limit the scope to Knife and Lettuce, but then I slice the lettuce, I lose the ability to have the new sliced objects in the metadata.
  • More fine-grained control over metadata keys (like I described in the original post)
0reactions
ekolvecommented, Apr 27, 2021

The issue @Tushar-N identified where forceAction=True is required to perform actions such as OpenObject on objects not included in the filter has been resolved with PR #693.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PDF properties and metadata, Adobe Acrobat
Edit or append document metadata​​ Choose File > Properties, click the Description tab, and then click Additional Metadata. Select Advanced from ...
Read more >
Condition keys for Database Query Metadata Service
Lists all of the available service-specific resources, actions, and condition keys that can be used in IAM policies to control access to Database...
Read more >
Check required metadata fields sub action
This sub action is used to check if text has been entered into one or more specified metadata field(s). It may, for instance,...
Read more >
Creating a metadata rule
Select Manage > Metadata > Metadata Rules to display the Metadata Rules listing. Click the Create button to display the Create Metadata Rule...
Read more >
Set up metadata navigation for a list or library
Enable metadata navigation and filtering · Click Settings Office 365 Settings button , and then click Site Settings. · Under Site Actions, click...
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