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.

`renderObjectImage` slows the `step` function dramatically - can it be its own action?

See original GitHub issue

From quick timings on a few machines, step with movement actions takes .1 to .15 seconds when renderObjectImage=False. This time per step jumps up to .8-.9 seconds with renderObjectImage=True. In some applications, we don’t need the object segmentation mask at every timestep. Would it be possible to make renderObjectImage an action instead, such that we can take a step to render and get the object segmentation frame (a slow step), but have the rest of the steps not bothering generating it so that the simulator runs faster?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ekolvecommented, Dec 4, 2020

This is now fixed with 1a2bdf51801e72bcc39366d6af00fb801cc5b2ec and 1a2bdf51801e72bcc39366d6af00fb801cc5b2ec

1reaction
mattdeitkecommented, Nov 13, 2020

Hey Jesse, this is supported, but not currently documented, with:

from ai2thor.controller import Controller
c = Controller()
event = c.step(action='MoveAhead', renderObjectImage=True)
event.instance_segmentation_frame  # not empty
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using a Step Functions API action to continue a new ...
To start workflow executions from a Task state. Open the Step Functions console and choose Create state machine ...
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