8000 GitHub - wfranus/lego-ceptron: Lego bricks image classifier
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wfranus/lego-ceptron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lego-ceptron

Lego bricks image classifier

Installation

  1. Create and activate virtualenv
    python3 -m virtualenv lego-ceptron
    source lego-ceptron/bin/activate
    alternatively, using virtualenvwrapper:
    mkvirtualenv --python=/usr/bin/python3 lego-ceptron
  2. Install packages
    pip install -r requirements.txt
  3. Add project's root directory to PYTHONPATH:
    add2virtualenv <project_root>

Dataset

Download dalaset from this Kaggle (login reqired) and unzip it to ./data directory. Remember to unzip all subarchives as well, so that your file tree looks like this:

./data/
   Base Images/
   Cropped Images/
   imageSetKey.csv
   other .jpg files

After this go to ./data folder and run:

python split_data.py

Additional files train.csv, valid.csv and test.csv will be created.

Running

From the project's root directory run:

python src/run.py train|predict 1|2|3|4

Allowed arguments:

$ python src/run.py --help
usage: run.py [-h] [-e EPOCHS] [-b BATCH_SIZE] [-ts {96,128,160,192,224}]
              {train,predict} {1,2,3,4}

SNR Lego bricks classification 2019.

positional arguments:
  {train,predict}       Run mode.
  {1,2,3,4}             Task number: 1 - train FC layers only, 2 - train last
                        conv layer + FC, 3 - train whole model

optional arguments:
  -h, --help            show this help message and exit
  -e EPOCHS, --epochs EPOCHS
                        Number of training epochs
  -b BATCH_SIZE, --batch_size BATCH_SIZE
                        Batch size
  -ts {96,128,160,192,224}, --target_size {96,128,160,192,224}
                        Target input image size.

About

Lego bricks image classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0