Giter Site home page Giter Site logo

monet's Introduction

Gaussian Mixture Model Convolutional Networks

This is a Pytorch implementation of Gaussian Mixture Model Convolutional Networks (MoNet) for the tasks of image classification, vertex classification on generic graphs, and dense intrinsic shape correspondence, as described in the paper:

Monti et al, Geometric deep learning on graphs and manifolds using mixture model CNNs (CVPR 2017)

Following the same network architecture provided in the paper, our implementation produces results comparable to or better than those shown in the paper. Note that for the tasks of image classification and shape correspondence, we do not use polar coordinates but replacing it as relative cartesian coordinates . It eases the pain of the both computational and space cost from data preprocessing.

Requirements

MoNet

MoNet uses a local system of pseudo-coordinates around to represent the neighborhood and a family of learnable weighting functions w.r.t. , e.g., Gaussian kernels with learnable mean and covariance . The convolution is

where is the learnable filter weights and is the node feature vector.

We provide efficient Pytorch implementation of this operator GMMConv, which is accessible from Pytorch Geometric.

Superpixel MNIST Classification

python -m image.main

Vertex Classification

python -m graph.main

Dense Shape Correspondence

python -m correspondence.main

Data

In order to use your own dataset, you can simply create a regular python list holding torch_geometric.data.Data objects and specify the following attributes:

  • data.x: Node feature matrix with shape [num_nodes, num_node_features]
  • data.edge_index: Graph connectivity in COO format with shape [2, num_edges] and type torch.long
  • data.edge_attr: Pesudo-coordinates with shape [num_edges, pesudo-coordinates-dim]
  • data.y: Target to train against

Cite

Please cite this paper if you use this code in your own work:

@inproceedings{monti2017geometric,
  title={Geometric deep learning on graphs and manifolds using mixture model cnns},
  author={Monti, Federico and Boscaini, Davide and Masci, Jonathan and Rodola, Emanuele and Svoboda, Jan and Bronstein, Michael M},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  pages={5115--5124},
  year={2017}
}

monet's People

Contributors

sw-gong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.