Coder Social home page Coder Social logo

kaggle-classifer's Introduction

Plant Pathology 2021 - FGVC8

Identify the category of foliar diseases in apple trees

Completion link

Download Dataset

BaiDu Network Disk

Get Data

passward kwj4

if you have downloaded the dataset,the document structure should be as follows:

../
    ./train_images
    ./test_images
    train.csv
    sample_submission.csv

where ../ is ROOT in config.py

Sample Data and EDA

Data

There are some different classes of image as below:

EDA

Step 1 (Key Step)

Another Step

SoftWare Version and Installation

Below are the versions of opencv-python, torch, torchvision, rich, warmup_scheduler, and numpy currently running at the time of writing this:

  • opencv-python : 4.5.5.64
  • torch : 1.10.0+cu102
  • torchvision : 0.11.0+cu102
  • rich : 10.16.2
  • warmup_scheduler : 0.3.2
  • numpy : 1.20.0

Install rich accelerate DataLoaderX albumentations and warmup_scheduler

pip install git+https://github.com/ildoonet/pytorch-gradual-warmup-lr.git
pip install rich
pip install accelerate
pip install prefetch_generator 
pip install -U albumentations
sudo apt-get install libturbojpeg
pip install -U jpeg4py

or you can use install.sh to configure

Custom Model

Add new model file to ./models/

example

./models/new_model.py

import torch
import torch.nn as nn
class Model(nn.Module):
    def __init__(self,in_channle,num_classes):
        super().__init__()
        pass
    def forward(self):
        pass

Custom transform

Add code in vision_transform

Configure parameters

In config.py,you can see a dict as follows:

parameter = {
    "ROOT": r"/mnt/d/dataset",
    "dataset_csv": r"train.csv",
    "batch_size": 32,
    "num_workers" : 8,
    "learning_rate" : 1e-3,
    "val_size" : 0.2,
    "seed" : 12,
    "epochs":10,
    "num_classes" : 12,
    "in_channel" : 3,
    "image_size" : (128,128)
}

kaggle-classifer's People

Contributors

dfx184 avatar qinsty avatar

Stargazers

 avatar

Watchers

 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.