Code Monkey home page Code Monkey logo

lps's Introduction

LPS

This code implements a deep learning method on Local Point Signature for 3D surface shape matching described in our CVPR 2019 paper:

"A Robust Local Spectral Descriptor for Matching Non-Rigid Shapes with Incompatible Shape Structures"

by Yiqun Wang, Jianwei Guo, Dong-Ming Yan, Kai Wang, Xiaopeng Zhang.

Project Page

Please consider citing the above paper if this code/program (or part of it) benefits your project.

Usage

There are three folders here. The "cpp" calls the "matlab" for GI generation. The "python" is used for network training and testing.

The usage is as follows:

  1. Compile matlab project:

     MCC matlab "mcc -W cpplib:libcompcur -T link:lib compute_curvature.m". We got the libcompcur.dll that is going to be added to the CPP project.
    
  2. Build cpp solution: this code is to generate geometry images. You can run this step in your local desktop.

     Modify CMakeLists: 
     	add include_directories and link_directories for openmesh and matlab runtime
     Cmake
     Build solution
     Modify config.ini for mesh_dir(directory of OFF models) gi_dir(directory of geometry images) and kpi_dir(directory of key points, you can skip it for dense matching)
     	edit other paras such as gi_size(NxN of gi), rotation_num and radius_list_p(the ratio of geodesic diameter).
     Add "libcompcur.dll" to folder with GIGen.exe
     Run "GIGen.exe config.ini" to generate GI
    
  3. Python project: this code is to train and test network. You should copy the geometry images generated in last step into the server.

    3.1 Train network:

     run "classify_gi_by_pidx_and_split.py" to classify dataset by point index for generating Tfrecord
     	source_dir is the folder of geometry images(rotation_num=12) for training, destination_dir is the generated folder after splitting
     run "tfr_gen.py" to generate Tfrecord
     	gi_dir is the same as destination_dir, tfr_dir is the generated folder of Tfrecord.
     run "train_softmax6890.py" to pretrain a classification network
     	tfr_dir needs to be specified
     run "train_mincv_perloss6890_256.py" to train the triplet network by restoring a pre-trained classification model
     	Tfr_dir needs to be specified
    

    3.2 Test to generate descriptor:

     run "descGen.py" to generate descriptor using test dataset
     	gi_dir is the folder of geometry images(rotation_num=1) for testing, desc_dir is the generated folder of descriptor.
    

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

lps's People

Contributors

yiqun-wang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.