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

Ambiguous overlap ratio for Modelnet and ModelLoNet #64

Open
Hui-design opened this issue Mar 30, 2023 · 0 comments
Open

Ambiguous overlap ratio for Modelnet and ModelLoNet #64

Hui-design opened this issue Mar 30, 2023 · 0 comments

Comments

@Hui-design
Copy link

Hi! Thank you for the amazing work!

We have a question about the calculation of the overlap ratio. In your paper you say "ModelNet which has 73.5% pairwise overlap on average, and ModelLoNet which contains a lower 53.6% average overlap". However, when I wrote a piece of code to test the overlap ratio, I could only get 51.35% for ModelNet and 43.16% for ModelLoNet. What is the reason? The testing code is as follows, I put it under datasets/modelnet.py

if __name__ == "__main__":
    from lib.utils import setup_seed, load_config
    from easydict import EasyDict as edict
    import pdb
    import torch
    from tqdm import tqdm

    config_dir = 'configs/test/modelnet.yaml'
    config = load_config(config_dir)
    config = edict(config)
    test_dataset = get_test_datasets(config)

    overlap_list = []
    test_loader = torch.utils.data.DataLoader(test_dataset, batch_size=1, shuffle=False, num_workers=4)
    for i, data in tqdm(enumerate(test_loader)):
        # pdb.set_trace()
        correspondence = data[6]
        src_idx = list(set(correspondence[0][:,0].int().tolist()))
        overlap_list.append(len(src_idx)/717)
    print(np.mean(overlap_list)) 

Thank you and look forward to your reply!

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

1 participant