Skip to content

ferjad/3DCZSL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Compositional Zero-shot Learning (3DCZSL)

This is the official PyTorch code for ECCV2022 3D Compositional Zero-shot Learning with DeCompositional Consensus. This repository provides the dataset, experimental framework for 3DCZSL and our proposed method DeCompositional Consensus.

Compositional PartNet

We refine PartNet into Compositional PartNet (C-PartNet) with a new labeling scheme that relates the compositional knowledge between objects by merging and renaming the repeated labels. The dataset can be downloaded from: Download Dataset.

DeCompositional Consensus

DeCompositional Consensus (DCC), learns an agreement (Consensus) over a segmentation hypothesis and its partbased object classification score when the object is taken apart (DeComposed) into parts like lego blocks as segmented in the hypothesis. Pretrained model for our reported number in the manuscript can be downloaded from: Download checkpoint.

Setup

  1. Clone the repo and cd to the folder.

  2. Setup the python environment using requirements.txt.

    pip install -r requirements.txt # for pip
    conda install --file requirements.txt # for anaconda
  1. Compile and install binaries.
    bash compile.sh
    cd shaper/models/convpoint/knn
    python setup.py install --home="."
    cd ../../../../
  1. Edit the OUTPUT_DIR and DATASET.path in config_backbone.yaml according to your local configuration.

  2. Train the PointNet backbone.

    python shaper/train_part_seg.py --cfg configs/config_backbone.yaml
  1. Change the WEIGHT under MODEL in config.yaml to the trained PointNet ckpt.
  2. Train DCC.
    python shaper/train_part_cls.py --cfg configs/config.yaml
  1. Test the trained model
    python shaper/test_part_cls.py --cfg configs/config.yaml

Acknowledgement

PointCloud backbones are adapted from the respective author implementations. Please consider citing them too.

References

If you use Compositional PartNet and/ or this code, please cite

@inproceedings{naeem2022dcc,
  title={3D Compositional Zero-shot Learning with DeCompositional Consensus},
  author={Naeem, Muhammad Ferjad and {\"O}rnek, Evin P{\i}nar and Xian, Yongqin and Van Gool, Luc and Tombari, Federico},
  booktitle={European Conference on Computer Vision},
  year={2022},
  organization={Springer}
}

About

3DCZSL with DeCompositional Consensus @ ECCV2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published