Neural Network Libraries - Examples

April 21, 2025 ยท View on GitHub

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

NameNotebookTaskExample
SLE-GANOpen In ColabImage Generation
First Order Motion ModelOpen In ColabFacial Motion Transfer
Zooming Slow-MoOpen In ColabVideo Super-Resolution
StyleGAN2Open In ColabImage Generation
Deep-Exemplar-based-Video-ColorizationOpen In ColabVideo Colorization
TecoGANOpen In ColabVideo Super-Resolution
ESR-GANOpen In ColabSuper-Resolution
Self-Attention GANOpen In ColabImage Generation
StarGANOpen In ColabImage Translation
DCGANOpen In ColabImage Generation

Vision & Language

NameNotebookTaskExample
CLIPOpen In ColabZero-shot image classification

Vision: Recognition

NameNotebookTaskExample
CenterNetOpen In ColabObject Detection
PSMNetOpen In ColabStereo Depth Estimation
Face Alignment NetworkOpen In ColabFacial Keypoint Detection
YOLO v2Open In ColabObject Detection
ResNet/ResNeXt/SENetOpen In ColabImage Classification

Audio

NameNotebookTaskExample
D3NetOpen In ColabMusic Source Separation
X-UMXOpen In ColabMusic Source Separation

Machine Learning

NameNotebookTaskExample
Out-of-Core trainingOpen In ColabOut-of-Core training
MixUp / CutMix / VH-MixupOpen In ColabData Augmentation
Virtual Adversarial TrainingOpen In ColabSemi-Supervised Learning
SiameseNetOpen In ColabFeature Embedding
Variational Auto-encoderOpen In ColabUnsupervised Learning

eXplainable AI

NameNotebookTaskExample
Grad-CAMOpen In ColabVisualization
SHAPOpen In ColabVisualization
Attention Branch NetworkOpen In ColabVisualization

Fairness of Machine Learning

NameNotebookTaskExample
Demographic parity
Disparate Impact
Equal opportunity
Equalised odds
Open In Colab[Metrics tutorial]
Dataset/Model Bias Check
ReweighingOpen In Colab[Pre-processing tutorial]
Dataset/Model Bias Check and Mitigation by Reweighing
Massage DataOpen In Colab[Pre-processing tutorial]
Dataset/Model Bias Check and Mitigation by Massage Data
Preferential SamplingOpen In Colab[Pre-processing tutorial]
Dataset/Model Bias Check and Mitigation by Preferential Sampling
GAN Data DebiasingOpen In Colab[Pre-processing tutorial]
Dataset/Model Bias Check and Mitigation by GAN
Prejudice Remover RegularizerOpen In Colab[In-processing tutorial]
Model Bias Check and Mitigation by Prejudice Removal Technique
Prejudice Remover Regularizer for ImagesOpen In Colab[In-processing tutorial]
Model Bias Check and Mitigation by Prejudice Removal Technique for Images
Adversarial Debiasing TutorialOpen In Colab[In-processing tutorial]
Model Bias Check and Mitigation by Adversarial Debiasing
Adversarial Debiasing for ImagesOpen In Colab[In-processing tutorial]
Model Bias Check and Mitigation by Adversarial Debiasing for Images
Rejection Option based ClassificationOpen In Colab[Post-processing tutorial]
Prediction Bias Check and Mitigation by ROC
Rejection Option based Classification for ImagesOpen In Colab[Post-processing tutorial]
Prediction Bias Check and Mitigation by ROC for Images
Skin color (Masked Images)Open In ColabFacial evaluation for skin color

Model Quantization

NameNotebookTaskExample
Post-training quantizationOpen In ColabPost-training quantization