GithubHelp home page GithubHelp logo

hell-to-heaven / multi-label-fashion-mnist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from f-rumblefish/multi-label-fashion-mnist

0.0 1.0 0.0 185 KB

Multi-Label Classification and Class Activation Map on Fashion MNIST

Python 100.00%

multi-label-fashion-mnist's Introduction

Multi-Label Classification and Class Activation Map on Fashion-MNIST

This repository covers the code for the blog.

Code: There are two files in this task: fashion_plot.py and fashion_read.py

  • fashion_plot.py ~ create the new datasets and their metadata files (usage: 1. create two folders "train" and "test", 2. run python fashion_plot.py under the "train" folder which will create all the image files and the metadata file called "labels.csv", 3. run python fashion_ploy.py under the "test" folder which will create all the image files and the metadata file called "labels.csv";)
  • fashion_read.py ~ implement multi-label classification and class activation map, i.e., read "train/labels.csv" to train and read "test/labels.csv" to test (usage: python fashion_read.py)

Dependency:

  • Python 2.7.11
  • Keras 2.1.6
  • Theano 0.9.0
  • Pandas 0.18.1
  • Numpy 1.14.3
  • Matplotlib 1.5.1
  • Opencv-python 3.3.0.10

Metadata:

  • labels.csv is presented for reference only. It is better to run fashion_plot.py and create your own dataset and metadata.

Note:

  • My Win10 12G RAM notebook (with no GPU) has two software environments: Python 2.7.11/Keras 2.1.6/Theano 0.9.0 and Python 3.6.3/Keras 2.0.8/Tensorflow 1.4.0. The programs (with some ugly compromises) running under the former one mainly due to the memory issue. Further, it takes about 1 or 2 days to complete training on my notebook.
  • Using a global average polling layer to implement class activation maps might not be the best solution in this case. Probably, Grad-CAM might achieve better results.

multi-label-fashion-mnist's People

Contributors

f-rumblefish avatar

Watchers

 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.