Giter VIP home page Giter VIP logo

whale's Introduction

Humpback Whale Identification Challenge

https://www.kaggle.com/c/whale-categorization-playground

Python Environment Setup

Set up a conda environment for the project

  1. open this project in PyCharm
  2. open up settings
  3. select Project:Whale/Project Interpreter
  4. click on the gear
  5. select conda, new environment with python 3.6
  6. click ok

Data Setup

  1. in Whale root, mkdir data
  2. download the files from https://www.kaggle.com/c/whale-categorization-playground/data into data
  3. unzip train.zip and test.zip
  4. move the train dir to raw train: mv train raw_train
  5. run the src/utils/prepare_data.py script (you can right click on it and click run)
  • this will create a directory in data called train which will have images in the format of label/example1.jpg

Running tests in Pycharm

  1. click on Edit Configurations: from the run menu
  2. click the + button, and then Python tests/Unittests
  3. name it something like unit tests
  4. for the Target/script path navigate to Whale/tests
  5. under pattern, put *test.py
  6. click on ok
  7. click on the play button to run the tests

Running tests from the command line

  1. create a conda environment using the requirements.txt: conda install --file requirements.txt
  2. run the following command (outputs to TestOutput/log and git adds it): ./run-tests.sh

Training and Predicting

Either:

  • right click on trainer.py in PyCharm and click the run button
  • run from the command line: PYTHONPATH=~/PycharmProjects/Whale python src/whale/trainer.py

whale's People

Watchers

 avatar  avatar  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.