Coder Social home page Coder Social logo

guesswho's Introduction

GuessWhat

CNN classification playground

Inspired by draw guess game and The Simpson characters recognization by Akexabdre Attia.
I trained on ~100 pictures I got from google images of a real bottle, and ~100 pictures of random things. For the test set, I invited friends to send me over their hand draw bottle,~20 images.
The predictions were all right, and in folder "handdraw" there are a few result images if you want to look at them;)
I am aware the structure of the bottle is relatively simple, which is the reason I pick it in the first place. input

I decide to use more complex image, and because selfie is the most accessible data for me, I collected two sets of selfie .Change to cifar10
Observation: The dataset contains a female and a male. I started with the person(upper part) occupy the center of the picture with a nearly blank background. The model didn't seem to recognize the same person with a different outfit. Later, I used click_and_crop.py to crop the face out of the original picture and only used the cropped image as training data. The accuracy was highly improved.

Task
Two person(female/male) to distinguish

50 image per class

The result from tf.ipynb showed the train_acc and val_acc fluctuate a lot. The main reason that I suspect is the size of my dataset.
I also used VGG16 with extra dense layer as our classifer, but the train_acc and val_acc also fluctuate a lot.
Ideally, we want see a relative smooth increasing or decresing trend for first 5 epochs of each case(structure) listed, without fine-tuning on each layer/block. so I decided switch my dataset to cifar10 for more intuitive understanding on CNN structure. Dataset will only be a part of cifar10, for speeding up computation time.

1.one hidden layer, fully connected model

2.cnn with 3conv layer,one pooling

3.more conv layer cnn

4.batch norm layer

5.resNet-like structure

6.Look at wrong predicted images. Plot image with high confidence score, but actually belong to another class. Plot images with probabilty close to 0.5.

7.training images contains individual person as main parts, use sigmoid as muti-label output, see the result of test image with two person init.

8.dataset inbalence: double the size of one class, see weather simply copy image of the other class to make up the size difference work or not.

guesswho's People

Contributors

dlong96 avatar

Watchers

James Cloos 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.