Coder Social home page Coder Social logo

kaggle_cassava's Introduction

kaggle_cassava's People

Contributors

takeruendo avatar

Watchers

 avatar  avatar

Forkers

pgsrv

kaggle_cassava's Issues

21. epochs

resnextとRepVGGは15epoch以上で良さそう

3. VisionTransformer

使い方: timmから使える

class ViTBase16(nn.Module):
    def __init__(self, n_classes, pretrained=False):
        super(ViTBase16, self).__init__()
        self.model = timm.create_model("vit_base_patch16_224", pretrained=False)
        if pretrained:
            self.model.load_state_dict(torch.load(MODEL_PATH))
        self.model.head = nn.Linear(self.model.head.in_features, n_classes)
    def forward(self, x):
        x = self.model(x)
        return x

notebook: https://www.kaggle.com/abhinand05/vision-transformer-vit-tutorial-baseline

18. アンサンブル

How I got LB 0.901 in a simple way.

I got the LB score of 0.901 by simply using SnapMix augmentation and model ensemble.

Detailed results can be found as below.

Single model result (single fold, no tta, no extra training data)

Resnet50 : LB 0.891 Notebook for training

Model ensemble ( no tta, no extra training data):

Resnet50 (5 folds) : LB 0.897

Resnet50 (5 folds) + Resnet101(5 folds): LB 0.899

Resnet50 (5 folds) + Resnet101(5 folds) + ResNext101(5 folds): LB 0.901

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.