Repository

nnabla-examples

Notice: nnabla is under maintenance phase and we will not be actively developing. Neural Network Libraries - Examples This repository contains working examples of Neural Network Li · License unknown · Install via pip · Maintenance unknown

License
Unknown
Name
Notebook
SLE-GAN
Image Generation
CLIP
Zero-shot image classification

Specs

  • NameNotebook
  • SLE-GANImage Generation
  • NameNotebook
  • CLIPZero-shot image classification
  • NameNotebook
  • CenterNetObject Detection
  • NameNotebook
  • D3NetMusic Source Separation
  • X-UMXMusic Source Separation
  • NameNotebook
  • Out-of-Core trainingOut-of-Core training
  • NameNotebook
  • Grad-CAMVisualization
  • NameNotebook
  • Demographic parity <br> Disparate Impact <br> Equal opportunity <br> Equalised odds[ Metrics tutorial ] <br> Dataset/Model Bias Check
  • NameNotebook
  • Post-training quantizationPost-training quantization

README

Notice: nnabla is under maintenance phase and we will not be actively developing.


Neural Network Libraries - Examples

This repository contains working examples of Neural Network Libraries.
Before running any of the examples in this repository, you must install the Python package for Neural Network Libraries. The Python install guide can be found here.

Before running an example, also run the following command inside the example directory, to install additional dependencies:

cd example_directory
pip install -r requirements.txt

Docker workflow

  • Our Docker workflow offers an easy installation and setup of running environments of our examples.
  • See this page.

nnabla-examples-utils (neu)

neu can now be installed as a python package. It provides a wide range of utility functions. For installation and usage, check utils

Interactive Demos

We have prepared interactive demos, where you can play around without having to worry about the codes and the internal mechanism. You can run it directly on Colab from the links in the table below.

Vision: Generation, Enhancement, Animation

Name Notebook Task Example
SLE-GAN Open In Colab Image Generation <a href="url">

</a>|
| First Order Motion Model | Open In Colab | Facial Motion Transfer |<a href="url">

</a>|
| Zooming Slow-Mo | Open In Colab | Video Super-Resolution |<a href="url">

</a> <a href="url">

</a>|
| StyleGAN2 | Open In Colab | Image Generation |<a href="url">

</a>|
| Deep-Exemplar-based-Video-Colorization | Open In Colab | Video Colorization | <a href="url">

</a> <a href="url">

</a>|
| TecoGAN | Open In Colab | Video Super-Resolution |<a href="url">

</a> <a href="url">

</a>|
| ESR-GAN | Open In Colab | Super-Resolution|<a href="url">

</a> <a href="url">

</a>|
| Self-Attention GAN | Open In Colab | Image Generation|<a href="url">

</a> <a href="url">

</a>|
| StarGAN | Open In Colab | Image Translation |<a href="url">

</a><a href="url">

</a>|
| DCGAN | Open In Colab | Image Generation ||

Vision & Language

Name Notebook Task Example
CLIP Open In Colab Zero-shot image classification <a href="url">

</a>|

Vision: Recognition

Name Notebook Task Example
CenterNet Open In Colab Object Detection <a href="url">

</a>|
| PSMNet | Open In Colab | Stereo Depth Estimation |<a href="url">

</a> <a href="url">

</a>|
| Face Alignment Network | Open In Colab | Facial Keypoint Detection |<a href="url">

</a><a href="url">

</a>|
| YOLO v2 | Open In Colab | Object Detection ||
| ResNet/ResNeXt/SENet | Open In Colab | Image Classification |<a href="url">

</a>|

Audio

Name Notebook Task Example
D3Net Open In Colab Music Source Separation
X-UMX Open In Colab Music Source Separation <a href="url">

</a>|

Machine Learning

Name Notebook Task Example
Out-of-Core training Open In Colab Out-of-Core training <a href="url">

</a>|
| MixUp / CutMix / VH-Mixup | Open In Colab | Data Augmentation |<a href="url">

</a> <a href="url">

</a>|
| Virtual Adversarial Training | Open In Colab | Semi-Supervised Learning ||
| SiameseNet | Open In Colab | Feature Embedding ||
| Variational Auto-encoder | Open In Colab | Unsupervised Learning ||

eXplainable AI

Name Notebook Task Example
Grad-CAM Open In Colab Visualization <a href="url">

</a>|
SHAP | Open In Colab | Visualization |<a href="url">

</a>|
Attention Branch Network | Open In Colab | Visualization | <a href="url">

</a>|

Fairness of Machine Learning

Name Notebook Task Example
Demographic parity <br> Disparate Impact <br> Equal opportunity <br> Equalised odds Open In Colab [Metrics tutorial] <br> Dataset/Model Bias Check <a href="url">

</a>|
Reweighing | Open In Colab | [Pre-processing tutorial] <br> Dataset/Model Bias Check and Mitigation by Reweighing |<a href="url">

</a>|
Massage Data | Open In Colab | [Pre-processing tutorial] <br> Dataset/Model Bias Check and Mitigation by Massage Data |<a href="url">

</a>|
Preferential Sampling | Open In Colab | [Pre-processing tutorial] <br> Dataset/Model Bias Check and Mitigation by Preferential Sampling|<a href="url">

</a>|
GAN Data Debiasing | Open In Colab | [Pre-processing tutorial] <br> Dataset/Model Bias Check and Mitigation by GAN |<a href="url">

</a>|
Prejudice Remover Regularizer | Open In Colab | [In-processing tutorial] <br> Model Bias Check and Mitigation by Prejudice Removal Technique |<a href="url">

</a>|
Prejudice Remover Regularizer for Images| Open In Colab | [In-processing tutorial] <br> Model Bias Check and Mitigation by Prejudice Removal Technique for Images |<a href="url">

</a>|
Adversarial Debiasing Tutorial | Open In Colab | [In-processing tutorial] <br> Model Bias Check and Mitigation by Adversarial Debiasing |<a href="url">

</a>|
Adversarial Debiasing for Images| Open In Colab | [In-processing tutorial] <br> Model Bias Check and Mitigation by Adversarial Debiasing for Images|<a href="url">

</a>|
Rejection Option based Classification | Open In Colab | [Post-processing tutorial] <br> Prediction Bias Check and Mitigation by ROC |<a href="url">

</a>|
Rejection Option based Classification for Images| Open In Colab | [Post-processing tutorial] <br> Prediction Bias Check and Mitigation by ROC for Images |<a href="url">

</a>|
Skin color (Masked Images) | Open In Colab | Facial evaluation for skin color |<a href="url">

</a>|

Model Quantization

Name Notebook Task Example
Post-training quantization Open In Colab Post-training quantization