Code Monkey home page Code Monkey logo

kaggle-camera-model-identification's Introduction

camera-model-identification-PyTorch

Description

Implementation of camera model identification models in kaggle .

The repository contains the implmentation of various image classification models like ResNet,DPN,DenseNet,etc in PyTorch deep learning framework .

models in this repo:

  • densenet121
  • densenet161
  • densenet169
  • densenet201
  • resnet50
  • resnet101
  • resnet152
  • resnext101
  • dpn92
  • dpn98
  • se_resnet50
  • se_resnet101
  • se_resnext50

Requirements

To train models and get predictions the following is required:

  • Python 3.6

packages:

  • torch==1.0.0
  • torchvision==0.2.1
  • scipy==1.0.0
  • tqdm==4.28.1
  • tensorboardX==1.4
  • matplotlib==2.1.2
  • opencv-python==3.4.2.17
  • numpy==1.14.0
  • pandas==0.20.3

training

  1. Install packages with pip install -r requirements.txt
  2. Download dataset from kaggle
  3. Place train dataset from Kaggle competition to dataset/train. Place test dataset from Kaggle competition to dataset/test.
  4. run python data_split.py
  5. run python runTrain.py --batch_size=64 --pretrained=True --learning_rate=0.0001 --epochs=100
  6. run python runMakePseudo.py --batch_size=128
  7. run python runTrain.py --batch_size=64 --learning_rate=0.0001 --epochs=40 --resume=True --use_pseudo=True
  8. run python runTest.py --batch_size=128

kaggle-camera-model-identification's People

Contributors

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