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

Noisy aug, pose update, depth abs, render, batch_list #165

Merged
merged 2 commits into from
Apr 12, 2022

Conversation

jsalotti
Copy link
Contributor

@jsalotti jsalotti commented Apr 6, 2022

Add a mergeable pose label to the Frame object.

It can be used as such

P = aloscene.Pose(cam_pos)

Pose directly inherit from CameraExtrinsic but usually refer to the global world coordinates/

Fix noisy pos to propagate the normalization and to use the device properly.

Add aloscene.render()

You can now directly render a list of view using aloscene.render()

aloscene.render(views)

Here is a example to add views and to record a video

views = []
# Run DFM on side cameras

for frames in data_loader:

    # Build a list of view
    for frames_side in frames:
        output = model.inference(model(frames))
        views.append(output.get_view())
    
    # render the list
    aloscene.render(views, record_file="model_outputs.mp4")

# Save the final video
aloscene.save_renderer()

batch list from aloscene

Instead of doing

SpatialAugmentedTensor.batch_list(tensors)

or

tensors[0].batch_list(tensors)

You can now do:

aloscene.batch_list(tensors)

Compute translation between two pose/extrinsic

ref.pose.translation_with(src.pose)

@jsalotti jsalotti added the aloscene aloscene label Apr 6, 2022
@jsalotti jsalotti requested a review from thibo73800 April 6, 2022 07:43
@jsalotti jsalotti self-assigned this Apr 6, 2022
@thibo73800 thibo73800 changed the title add pose label to frame Noisy aug, pose update, depth abs, render, batch_list Apr 12, 2022
@thibo73800 thibo73800 merged commit 553857b into master Apr 12, 2022
@thibo73800 thibo73800 deleted the add_pose_label branch April 12, 2022 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aloscene aloscene
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants