All Projects → Liusifei → Caffe Spn

Liusifei / Caffe Spn

Licence: other
Codes for Learning Affinity via Spatial Propagation Networks

Projects that are alternatives of or similar to Caffe Spn

D3 Js Step By Step
http://zeroviscosity.com/category/d3-js-step-by-step
Stars: ✭ 80 (-1.23%)
Mutual labels:  jupyter-notebook
Lifetime value
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Mlnetexamples
A collection of examples for the ML.NET machine learning package from Microsoft
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Style Semantics
Code for the paper "Controlling Style and Semantics in Weakly-Supervised Image Generation", ECCV 2020
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Object Detection On Thermal Images
Robust Object Classification of Occluded Objects in Forward Looking Infrared (FLIR) Cameras
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Neural Structural Optimization
Neural reparameterization improves structural optimization
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Mimic Code
MIMIC Code Repository: Code shared by the research community for the MIMIC-III database
Stars: ✭ 1,225 (+1412.35%)
Mutual labels:  jupyter-notebook
Ai For Trading
code repository for Udacity nanodegree Artificial Intelligence for Trading
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Kgtk
Knowledge Graph Toolkit
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Unet Tgs
Applying UNET Model on TGS Salt Identification Challenge hosted on Kaggle
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Wellnessconversation Languagemodel
Korean Language Model을 이용한 심리상담 대화 언어 모델.
Stars: ✭ 80 (-1.23%)
Mutual labels:  jupyter-notebook
Dl in nlp deeppavlov cs224n spring2020
"Deep Learning in Natural Language Processing" - a course by DeepPavlov built on top of Stanford's cs224n
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Learn machine learning
Road to Machine Learning
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Tutorials2021
Mediterranean Machine Learning school tutorials
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Astool
Augmented environments with RL
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Talks odt
Slides and materials for most of my talks by year
Stars: ✭ 80 (-1.23%)
Mutual labels:  jupyter-notebook
Deep transfer learning nlp dhs2019
Contains the code and deck for the presentation on Applying Deep Transfer Learning for NLP in Analytics Vidhya's DataHack Summit 2019
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Whatsapp Radiologist
A chatbot built in python using Selenium module.
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Ltpextraction
基于ltp的简单评论观点抽取模块
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook
Scala Cheatsheet
The Biggest Scala Cheat-Sheet.
Stars: ✭ 81 (+0%)
Mutual labels:  jupyter-notebook

SPN: Learning Affinity via Spatial Propagation Network

License

Copyright (C) 2018 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).

Installation

The codes for Learning Affinity via Spatial Propagation Networks is based on CAFFE. To install,

cd caffe-dev

and then follow the Installation to install all neccesary dependencies, then

make all -j

make pycaffe

SPN layer and integration

If you need to integrate the SPN layer into your own caffe, do the following steps and rebuild:

  1. copying "caffe-dev/src/caffe/layers/gaterecurrent2dnoind_layer.cpp", "caffe-dev/src/caffe/layers/gaterecurrent2dnoind_layer.cu" into "<your caffe root>/src/caffe/layers".

  2. copying "caffe-dev/include/caffe/layers/gaterecurrent2dnoind_layer.hpp" into "/include/caffe/layers".

  3. open "/src/caffe/proto/caffe.proto", add:

    a. "optional GateRecurrent2dnoindParameter gaterecurrent2dnoind_param = <next avaliable id>;" under message LayerParameter;

    b. add the following to your caffe.proto:

     message GateRecurrent2dnoindParameter {
         optional uint32 num_output = 1 [default = 16]; 
         optional bool horizontal = 16 [default = true];
         optional bool reverse = 17 [default = false]; //recurrent direction
    
         enum Active {
         LINEAR = 0; 
         SIGMOID = 1; 
         RELU = 2; 
         TANH = 3; 
         }    
         optional Active active = 18 [default = LINEAR];
     }
    

    or searching "caffe-dev/src/caffe/proto/caffe.proto" for details.

Pytorch ext for spn layer

We develop the spn layer ext for pytorch HERE. Note that we did not re-implement the vision tasks in the paper on pytorch yet. However, you are encouraged to apply this module to any vision tasks you are working on.

Training

The example of datalayer and trainig scripts are in pylayers/vocspn_datalayer.py and myscripts/train.py. To train the spn segmentation refinement model:

  1. adding your dataset path to the datalayer (line 10 in models/voc_rnn_vgg_v3.prototxt);

  2. You could download the segmentation restuls (probabilistic outputs) of FCN-8s on VOC training set from HERE as an example to train your refinement model. Please put it on the corresponding VOC folders. You could centainly design new algorithms by applying other coarse maps for you own tasks.

  3. run:

    python myscripts/train.py

Testing (ongoing...)

Coarse segmentation mask example

The example of coarse segmentation results (probability output), generated by deeplabv2 Resnet-101 can be found HERE. Nevertheless, the provided refinement model can be generalized to many other segmentation results (e.g., FCN, deeplabv2 VGG-16, etc.).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].