GithubHelp home page GithubHelp logo

pengmiao-usc / gnn-mnist-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anton-cherepkov/gnn-mnist-classification

0.0 0.0 0.0 4.49 MB

Image classification using Graph Neural Networks (GNNs) with MNIST dataset

License: MIT License

Shell 0.56% Python 99.44%

gnn-mnist-classification's Introduction

gnn-mnist-classification

Image classification using Graph Neural Networks (GNNs) with MNIST dataset

Description

This repository is the implementation of paper A Graph Neural Network for superpixel image classification by Jianwu Long , Zeran yan and Hongfa chen.

The authors of the paper propose to solve the Image Classification Task using Graph Neural Networks (GNNs).

Creating a graph from an image

In order to use GNNs, each image must be converted into some graph. In this work SLIC algorithm is used for this. This algorithm segments a set of superpixels given an image. Each superpixels is considered as a graph node. Adjacent superpixels are connected with edges.

Dataset

MNIST is used in this repository. Each digit image was converted into 75 superpixels using SLIC algorithm.

Here are some samples for better understanding: Superpixels Superpixels

Results

One may find the experiment logs here: https://wandb.ai/acherepkov/mnist-gnn-classification/runs/dphbxqga.

I also published a tutorial for Google Colab: https://colab.research.google.com/drive/1d29NDjNMQ6I17rxTr8Wo6S-5nH3MGyXX?usp=sharing.

MNIST accuracy
Authors' results 97.11
My results 74.59

Notes:

  • The authors of the paper did not release any code and did not provide hyperparameters details like optimizer, learning rate, schedulers, linear layers sizes;
  • I am not sure whether my readout operation is correct;

The gap between my and authors' metrics may be due to these two facts.

gnn-mnist-classification's People

Contributors

anton-cherepkov 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.