Skip to content
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

allow options on rendering centerlines, directly generating mp4, and … #170

Merged
merged 21 commits into from
May 7, 2021

Conversation

johnwlambert
Copy link
Contributor

For cuboids_to_bboxes.py script:

  • allow options on rendering centerlines
  • allow directly generation mp4 without individual frames
  • use consistent notation for SE(3)
  • add multiprocessing support

import numpy as np

"""
Python-based utilities to avoid blowing up the disk with images, as FFMPEG requires.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize we had this dependency tbh (it's not in our dependency list for some reason), I'll take a look

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What were your thoughts on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't played around with moviepy before, but we should check it out more: https://zulko.github.io/moviepy/

Copy link
Contributor

@janesjanes janesjanes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, the code run without any problems

)
for log_id in log_ids
]
with Pool(os.cpu_count()) as p:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it take awhile to run, would be nice to be able to specify number of cpu to use as well so we can do something else while rendering.

@benjaminrwilson
Copy link
Contributor

Do we have any blockers here?

@benjaminrwilson
Copy link
Contributor

LGTM 👍

@johnwlambert johnwlambert merged commit 6c360f3 into master May 7, 2021
@johnwlambert johnwlambert deleted the add-cv2-VideoWriter-support branch May 7, 2021 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants