Awesome Open Source
Awesome Open Source

The new version code and pretrained models are available at, and more code and models will be released.

Learning Deep Compositional Grammatical Architectures for Visual Recognition

This repository contains the code (in MXNet) for our CVPR2019 paper: "Learning Deep Compositional Grammatical Architectures for Visual Recognition" paper by Xilai Li, Tianfu Wu*, Xi Song. (* Corresponding Author)


If you find our project useful in your research, please consider citing:

  title={Learning Deep Compositional Grammatical Architectures for Visual Recognition},
  author={Xilai Li, Tianfu Wu, Xi Song, Hamid Krim},
  journal={arXiv preprint arXiv:1711.05847},


  1. Introduction
  2. Contacts


An AOGNet consists of a number of stages each of which is composed of a number of AOG building blocks. An AOG building block is designed based on a principled AND-OR grammar and represented by a hierarchical and compositional AND-OR graph. There are three types of nodes: an AND-node explores composition, whose input is computed by concatenating features of its child nodes; an OR-node represents alternative ways of composition in the spirit of exploitation, whose input is the element-wise sum of features of its child nodes; and a Terminal-node takes as input a channel-wise slice of the input feature map of the AOG building block. AOGNets aim to harness the best of two worlds (grammar models and deep neural networks) in representation learning with end-to-end training.


email: [email protected]

Any discussions and contribution are welcomed!

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (53,372
deep-learning (3,914
computer-vision (1,245
deep-neural-networks (460
image-classification (177
imagenet (109
mxnet (106
cifar10 (39