Git Product home page Git Product logo

seqviews2seqlabels's Introduction

SeqViews2SeqLabels

This is the source code for our TIP paper "SeqViews2SeqLabels: Learning 3D Global Features via Aggregating Sequential Views by RNN with Attention"

Requirements

  • python 2.7
  • tensorflow 1.0.12
  • numpy 1.13.3
  • scipy 0.19.0
  • matplotlib 2.0.1

Note: Our code borrowed some code from tensorflow.contrib.legacy_seq2seq, but the newer version of tensorflow has moved this package to tensorflow.contrib.seq2seq, so to run this code, please make sure your version of tensorflow has this package(we recommend to use 1.0.12 as ours).

Datasets

Codes

  • run.py execute train or test command.
  • train.py train and test SeqViews2SeqLabels model.
  • seq_rnn_model.py the SeqViews2SeqLabels model.
  • model_data.py read data as required format of model inputs.
  • utils/ utils for visualization and retrieval.

Usage

To run this code, please go with below steps:

  1. Extract feature for views of each spilt of dataset with VGG19, the features are numpy matrix with shape [n_shapes, n_views=12, 4096], in total we need:
    • modelnet10 train feature, test feature
    • modelnet40 train feature, test feature
    • shapenet55 train feature, val feature, test feature
  2. Prepare labels as one dimensional numpy array [n_shapes], the order of labels should be corresponding to the view features, in total we need:
    • modelnet10 train labels, test labels
    • modelnet40 train labels, test labels
    • shapenet55 train labels, val labels, test labels
  3. Modify the data_path in run.py: the paths for each dataset are given as below:
    <train feature file>, <train labels file>, <test feature file>, <test labels file>, <result dir for saving the trained model and log>, <result file for saving test result>

the run command is python run.py --dataset=<dataset> --train=<train>, the options for dataset parameter are modelnet10, modelnet40 or shapenet55, and for train are True or False

For example, to train on modelnet10, run the command python run.py --dataset=modelnet10 --train=True;
to test on shapenet55, run the command python run.py --dataset=shapenet55 --train=False.

Citation

If you find this useful, please cite our work as follows:

@article{han2019SeqViews2SeqLabels,
  title={SeqViews2SeqLabels: Learning 3D Global Features via Aggregating Sequential Views by RNN with Attention},
  author={Zhizhong Han, Mingyang Shang, Zhenbao Liu, Chi-Man Vong, Yu-Shen Liu, Junwei Han, Matthias Zwicker, C.L. Philip Chen},
  journal={IEEE Transactions on Image Processing},
  year={2019, 28(2): 658-672},
  publisher={IEEE}
}

Contacts

If you have any problem about our paper and code, please send email to [email protected].

seqviews2seqlabels's People

Contributors

mingyangshang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

seqviews2seqlabels's Issues

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.