-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Visualization/Representation] Different values in part_boxes
: datav1.py
vs data_snv1.py
#21
Comments
Example (Shape No. 2197):
|
It looks like the computet/provided dataset does differ when it comes to rotation and size: Here a minimal example to load import os
import torch
import numpy as np
from kornia.geometry.conversions import quaternion_to_rotation_matrix
geo_fn = os.path.join('../data/partnetdata/Chair_dgeo', "2197.npz")
geo_data = np.load(geo_fn)
print(geo_data["box_quat"][16])
print(geo_data["box"][16])
p = torch.from_numpy(geo_data["box_quat"][16])
box_quat = p.squeeze()
center = box_quat[:3]
size = box_quat[3:6]
rotmat = quaternion_to_rotation_matrix(box_quat[[7, 8, 9, 6]])
box = torch.cat([center, size, rotmat[:, 0].view(-1), rotmat[:, 1].view(-1)])
print(box.view(-1).numpy())
The output seems to confirm my theory. Unfortunately, the provided data in both dataloaders does not match for the boxes. Please, compare the output from Is my assumption correct, that the datasets are computed differently and thus have different box sizes and rotations? Thus, cannot be directly compared with each other, nor we can use the visualization script properly? |
part_boxes
: datav1.py
vs data_snv1.py
part_boxes
: datav1.py
vs data_snv1.py
When loading an object with the provided dataloaders I get different number of values for
part_boxes
.Using
PartGraphShapesDataset
fromdatav1.py
the Tensor has 10 values, when usingPartGraphShapesDataset
fromdata_snv1.py
the Tensor has 12 values.It seems like the visualization script
vis_utils.py
expects the boxes to have 12 values.DSG-Net/code/vis_utils.py
Lines 27 to 31 in 6c6d117
So, what do the 10 values represent and how can I convert them to match the visualization (e.g.
vis_pc.ipynb
) for the output?Minimal Code Examples:
The text was updated successfully, but these errors were encountered: