All Projects → gigasquid → Cats Dogs Cortex Redux

gigasquid / Cats Dogs Cortex Redux

Licence: epl-1.0
Kaggle Cats & Dogs Redux with Cortex and Resnet50

Projects that are alternatives of or similar to Cats Dogs Cortex Redux

Keras model compression
Model Compression Based on Geoffery Hinton's Logit Regression Method in Keras applied to MNIST 16x compression over 0.95 percent accuracy.An Implementation of "Distilling the Knowledge in a Neural Network - Geoffery Hinton et. al"
Stars: ✭ 59 (-1.67%)
Mutual labels:  jupyter-notebook
Memory Efficient Maml
Memory efficient MAML using gradient checkpointing
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Kaggle challenge live
This is the code for "Kaggle Challenge (LIVE)" by Siraj Raval on Youtube
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Intro To Nltk
Code and Notebooks for the Natural Language Processing with Python course.
Stars: ✭ 59 (-1.67%)
Mutual labels:  jupyter-notebook
Analytics vidhya
Codes related to activities on AV including articles, hackathons and discussions.
Stars: ✭ 1,106 (+1743.33%)
Mutual labels:  jupyter-notebook
Fraud detection techniques
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Deep Learning 101
The tools and syntax you need to code neural networks from day one.
Stars: ✭ 59 (-1.67%)
Mutual labels:  jupyter-notebook
Pycon Ua 2018
Talk at PyCon UA 2018 (Kharkov, Ukraine)
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Kdd2020multimodalities
KDD Cup 2020 Challenges for Modern E-Commerce Platform: Multimodalities Recall
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Pose Guided Image Generation
Implementation of NIPS 2017 paper "Pose Guided Person Image Generation" in PyTorch. https://arxiv.org/abs/1705.09368
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Feedinlib
This repository contains implementations of photovoltaic models to calculate electricity generation from a pv installation based on given solar radiation. Furthermore it contains all necessary pre-calculations.
Stars: ✭ 59 (-1.67%)
Mutual labels:  jupyter-notebook
Image Outpainting
🏖 Keras Implementation of Painting outside the box
Stars: ✭ 1,106 (+1743.33%)
Mutual labels:  jupyter-notebook
Pytorchintro
An Absolute Beginners Guide to Machine Learning with PyTorch
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Stylist
Fast artistic style transfer with convolutional neural networks.
Stars: ✭ 59 (-1.67%)
Mutual labels:  jupyter-notebook
Data scientist nanodegree
Stars: ✭ 59 (-1.67%)
Mutual labels:  jupyter-notebook
Learning Pandas Second Edition
Learning pandas, Second Edition, published by Packt
Stars: ✭ 59 (-1.67%)
Mutual labels:  jupyter-notebook
Multimodal Short Video Dataset And Baseline Classification Model
500,000 multimodal short video data and baseline models. 50万条多模态短视频数据集和基线模型(TensorFlow2.0)。
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Instapy Research
📄 Research repository for InstaPy
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Ml Dl Projects
Personal projects using machine learning and deep learning techniques
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook
Pyeis
PyEIS: A Python-based Electrochemical Impedance Spectroscopy simulator and analyzer
Stars: ✭ 60 (+0%)
Mutual labels:  jupyter-notebook

cats-dogs-redux

This example borrows heavily from the RESNET-RETRAIN example in the cortex project.

dataset

Try out the walkthrough with the Jupyter Notebook

Have Jupyter Notebook already? Try the walkthough.

This Jupyter Notebook uses the lein-jupyter plugin to be able to execute Clojure code in project setting. The first time that you run it you will need to install the kernal with lein jupyter install-kernel. After that you can open the notebook in the project directory with lein jupyter notebook

Traditional Intstructions

unzip to train.zip data directory. Should have this directory structure:

data/train

Get the RESNET 50 model ./get-resnet50.sh

  • you should now have a directory /models with a resnet50.nippy file in it

Start repl

(build-image-data)
  • This will setup the training pictures into the correct training and test folder structure that cortex expects under the data directory.

You should be ready to train now.

(train)

Or if you have mem issues, you might want to try it from the uberjar

lein uberjar and then java -jar target/resnet-retrain-0.9.23-SNAPSHOT.jar

After only retaining the RESNET50 for only one epoch we get pretty good results. Try it out with

(label-one)

If you are interested in continuing the training, you can run train-again or from the uberjar java -jar target/resnet-retrain.jar batch-size true

If you want to run the kaggle tests for classification and submission:

You will need to do a bit more setup for this. First, you need to get the Kaggle test images for classification. There are 12500 of these in the test.zip file from the site. Under the data directory, create a new directory called kaggle-test. Now unzip the contents of test.zip inside that folder. The full directory with all the test images should now be: data/kaggle-test/test This step takes a long time and you might have to tweak the batch size again depending on your memory. There are 12500 predications to be made. The main logic for this is in function called (kaggle-results batch-size). It will take a long time to run. It will print the results as it goes along to the kaggle-results.csv file. If you want to check progress you can do wc -l kaggle-results.csv

(kaggle-result 100)

or adjust the batch size for your memory

Copyright © 2017 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].