Coder Social home page Coder Social logo

weather4cast2021-swinencoderdecoder's Introduction

Weather4cast2021-SwinEncoderDecoder (AI4EX Team)

Table of Content

General Info

The resipository contains the code and learned model parameters for our submision in Weather4cast2021 stage-1 competition.

Requirements

This resipository depends on the following packages availability

  • Pytorch Lightning
  • timm
  • torch_optimizer
  • pytorch_model_summary
  • einops

Installation:

unzip folder.zip
cd folder
conda create --name swinencoder_env python=3.6
conda activate swinencoder_env
conda install pytorch=1.9.0 cudatoolkit=10.2 -c pytorch
pip install -r requirements.txt

Usage

  • a.1) train from scratch
    python main.py --gpus 0 --use_all_region
    
  • a.2) fine tune a model from a checkpoint
    python main.py --gpu_id 1 --use_all_region --mode train --name ALL_real_swinencoder3d_688080 --time-code 20210630T224355 --initial-epoch 58```
    
    
  • b.1) evaluate an untrained model (with random weights)
    python main.py --gpus 0 --use_all_region --mode test
    
  • b.2) evaluate a trained model from a checkpoint (submitted inference)
    python main.py --gpu_id 1 --use_all_region --mode test --name ALL_real_swinencoder3d_688080 --time-code 20210630T224355 --initial-epoch 58
    

Inference

To generate predictions using our trained model

R=R1
INPUT_PATH=../data
WEIGHTS=logs/ALL_real_swinencoder3d_688080
OUT_PATH=.
python inference.py -d $INPUT_PATH -r $R -w $WEIGHTS -o $OUT_PATH -g 1

weather4cast2021-swinencoderdecoder's People

Contributors

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