Skip to content

Misalignment and Inverted Orientation of Object in Reconstructed GLB Output #9

@CHNxindong

Description

@CHNxindong

Dear Author,

Thanks for your great work and for releasing the code! I have a question regarding the following steps.

When I run the commands below:

  1. python scripts/run_da3.py
    --image_dir ./data/example/images
    --output_dir ./da3_outputs/example

  2. python run_inference_weighted.py
    --input_path ./data/example
    --mask_prompt stuffed_toy
    --image_names 0,1,2,3,4,5,6,7
    --da3_output ./da3_outputs/example/da3_output.npz
    --stage2_weight_source visibility
    --merge_da3_glb

I obtain the file result_merged_scene.glb. However, when I visualize this .glb file using the OHZI tool, the result appears as follows:

Image

As shown, the reconstructed scene and the object are misaligned: the object appears to be oriented in the opposite direction.

I followed the instructions in the README.md, with only two minor modifications:

  1. I copied the sam3d_objects/utils/visualization directory from the original SAM3D project (sam-3d-objects) into MV-SAM3D, because this folder is missing in MV-SAM3D and its absence caused an import error.
Image
  1. I renamed the image files in both data/example/images and data/example/stuffed_toy from 1–8.png to 0–7.png to match the zero-based indexing used by DA3 (since the DA3 output expects frames numbered from 0 to 7).
Image

Could you please advise what might be causing this alignment/orientation issue? Thank you again for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions