Giter VIP home page Giter VIP logo

orchid219_classification's Introduction

Orchid219_classification

Competition URL: https://tbrain.trendmicro.com.tw/Competitions/Details/20
Private Leaderboard: 14 / 743 (Top 2%)

Getting started

  • Clone this repo to your local
git clone https://github.com/come880412/Orchid219_classification
cd Orchid219_classification

Computer Equipment

  • System: Ubuntu20.04

  • Pytorch version: Pytorch 1.7 or higher

  • Python version: Python 3.7

  • Testing:
    CPU: AMR Ryzen 7 4800H with Radeon Graphics RAM: 32GB
    GPU: NVIDIA GeForce RTX 1660Ti 6GB

  • Training:
    CPU: Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz RAM: 256GB GPU: NVIDIA GeForce RTX 3090 24GB * 2

Packages

Please read the "requirement.txt" for the details.

Download & preprocess dataset

  • You should prepare the dataset from here, and put the dataset on the folder ../dataset/Orchid219. After doing so, please use the following command to do data preprocessing.
python3 preprocessing.py 
  • Note: please modify the dataset path on the script preprocessing.py.

Download pretrained models

  • Please download the pretrained models from here, and put the models on the folder ./public_model.

Folder structure

Orchid
├── Orchid219_classification/ 
├── dataset/ 
  ├── Orchid219
    ├── images
    ├── private_and_public
      ├── public images and private images
    ├── submission_template.csv
    ├── label.csv

Colab file

If you would like to use colab to implement, please use the file "Orchid.ipynb".

Inference

  • After preparing the dataset and downloading the pretrained models, you could use the following command to generate the .csv file, which is the best public score on our submission.
bash inference.sh

Training

  • In this competition, we use three models, including swin_large, beit_large_384, convnext_xlarge [1]. You could check the training detail on the script "train.py", and train all models using the following command.
bash train.sh

References

[1] https://github.com/rwightman/pytorch-image-models

orchid219_classification's People

Contributors

come880412 avatar

Watchers

James Cloos 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.