GithubHelp home page GithubHelp logo

kaggle_global_wheat_detection's Introduction

kaggle_global_wheat_detection's People

Contributors

kiccho1101 avatar kktsubota avatar

Stargazers

 avatar

Watchers

 avatar  avatar

kaggle_global_wheat_detection's Issues

Create CV runner

  • Create runner.py for cross-validation.

  • We'd better do it by pair-programming.

  • Understand competition metrics

  • Implement calc_metrics function

  • mlflow

  • hydra

mlflow server

  • ちなみに今GCPでインスタンス借りてそこで回してます
  • GPUはTeslaのT4 (速いのか遅いのかわからん)

Debug model forwarding

When running notebook/cv.ipynb, we got a following error.

Fitter prepared. Device is cpu

2020-07-12T22:45:16.055624
LR: 0.0002
Train Step 0/675, summary_loss: 0.00000, time: 0.26056
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-42e71780afd2> in <module>
     20 )
     21 
---> 22 fitter.fit(train_loader, valid_loader)

~/Documents/src/github.com/kiccho1101/kaggle_global_wheat_detection/src/factories/fitter.py in fit(self, train_loader, valid_loader)
     59 
     60             start = time.time()
---> 61             summary_loss = self._train_one_epoch(train_loader)
     62 
     63             self.log(

~/Documents/src/github.com/kiccho1101/kaggle_global_wheat_detection/src/factories/fitter.py in _train_one_epoch(self, train_loader)
    109             self.optimizer.zero_grad()
    110 
--> 111             loss, _, _ = self.model(images, bboxes, labels)
    112             loss.backward()
    113             summary_loss.update(loss.detach().item(), batch_size)

~/.local/share/virtualenvs/kaggle_global_wheat_detection-Hxp-F21z/lib/python3.8/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
    548             result = self._slow_forward(*input, **kwargs)
    549         else:
--> 550             result = self.forward(*input, **kwargs)
    551         for hook in self._forward_hooks.values():
    552             hook_result = hook(self, input, result)

TypeError: forward() takes 3 positional arguments but 4 were given

For license issue

ライセンス問題、結果よくわからんのでDiscussionで読んだスクショを貼ってく

Something is wrong with the evaluation function

Screen Shot 2020-07-22 at 8.36.54.png

今のプログラムだと、precisionが0.01という明らかに低すぎる数字になってしまう。
おそらくプログラムにバグありなので、解明して修正しないと。。

Ideas

Backbone

Pre-trained model

Data Augmentation

  • CutMix [2] = Mixup + Cutout
    • Is this really implemented?
  • AutoAugment [5] or faster model

How to use test data

  • "Temporal Ensembling for Semi-Supervised Learning"
  • training with noisy student [4]
  • semi-supervised learning for object detection [3] instead of pseudo labeling
    • consisntency learning is a basic idea for semi-supervised learning for classification (e.g. Temporal Ensembling, Mean Teacher, MixMatch, FixMatch)

Inference

  • Increase the resolution at the test time [1]: この手法自体はglobal average poolingを仮定

[1] https://papers.nips.cc/paper/9035-fixing-the-train-test-resolution-discrepancy
[2] https://openaccess.thecvf.com/content_ICCV_2019/papers/Yun_CutMix_Regularization_Strategy_to_Train_Strong_Classifiers_With_Localizable_Features_ICCV_2019_paper.pdf
[3] https://papers.nips.cc/paper/9259-consistency-based-semi-supervised-learning-for-object-detection.pdf
[4] https://ai-scholar.tech/articles/treatise/noisy-student-ai-379
[5] https://openaccess.thecvf.com/content_CVPR_2019/html/Cubuk_AutoAugment_Learning_Augmentation_Strategies_From_Data_CVPR_2019_paper.html

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.