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

Regarding Symmetry calculation #289

Open
ArghyaChatterjee opened this issue Mar 28, 2023 · 3 comments
Open

Regarding Symmetry calculation #289

ArghyaChatterjee opened this issue Mar 28, 2023 · 3 comments

Comments

@ArghyaChatterjee
Copy link

Hi, I am trying to calculate symmetry for my objects to generate some dataset with dope and train.

Here are my objects:
Rodbar:
rodbar

It looks like it has rotational 180 degree symmetry in all axes. Is the following model_info.json correct?

{
  "symmetries_discrete": [[1,  0,  0,  0,
                           0, -1,  0,  0,
                           0,  0, -1,  0,
                           0,  0, 0,   1]],
  "symmetries_discrete": [[1,  0,  0,  0,
                           0, -1,  0,  0,
                           0,  0, -1,  0,
                           0,  0, 0,   1]],
  "symmetries_discrete": [[1,  0,  0,  0,
                           0, -1,  0,  0,
                           0,  0, -1,  0,
                           0,  0, 0,   1]],
  "align_axes": [{"object": [1, 0, 0], "camera": [1, 0, 0]}, {"object": [0, 1, 0], "camera": [0, 0, 1]}, {"object": [0, 0, 1], "camera": [0, 1, 0]}]
}

Also a question about mirror symmetry.
doorhandle:
doorhandle

It looks like it has some mirror symmetry around one axis. Does it need any kind of model_info.json file ?

Thanks.

@mintar
Copy link
Contributor

mintar commented Mar 29, 2023

Is the following model_info.json correct?

No, it should look something like this:

{
  "symmetries_discrete": [[ 1,  0,  0,  0,
                            0, -1,  0,  0,
                            0,  0, -1,  0,
                            0,  0,  0,  1],
                          [-1,  0,  0,  0,
                            0,  1,  0,  0,
                            0,  0, -1,  0,
                            0,  0,  0,  1],
                          [-1,  0,  0,  0,
                            0, -1,  0,  0,
                            0,  0,  1,  0,
                            0,  0,  0,  1]],
  "align_axes": [{"object": [0, 1, 0], "camera": [0, 0, 1]}]
}

It looks like it has some mirror symmetry around one axis. Does it need any kind of model_info.json file ?

No, mirror symmetries are fine. Only rotational symmetries need any special handling.

@ArghyaChatterjee
Copy link
Author

Hi, thanks for the clarification. Closing the issue.

@ArghyaChatterjee
Copy link
Author

Sorry to revive the issue, I am dealing with a mug model. If I think about geometric symmetry about the mug, the json file accounting for the symmetry looks like this:

{
  "symmetries_discrete": [
    [1,  0,  0,  0,
     0, -1,  0,  0,
     0,  0, -1,  0,
     0,  0,  0,  1]
  ],
  "align_axes": [{"object": [0, 1, 0], "camera": [0, 0, 1]}]
}

Am I correct ??

So, geometrically this mug model has a symmetry along y axis, but texture wise, it has different texture in one face and different on the other. In this situation, should I include a model.json file like the above or skip it ??

Screenshot from 2023-10-18 10-33-12

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

No branches or pull requests

2 participants