Giter VIP home page Giter VIP logo

unettfi's Introduction

UNetTFI

The 1st place solution in Weather4cast transfer learning leaderboard

Overview

This repository contains the code and UNetTFI model used in Weather4cast competition, which achieves the 1st place in the transfer learning leaderboard. It includes trained models, their weights, configurations, and scripts to reproduce our results.

Our solution (scientific paper) utilizes the newly proposed Temporal Frame Interpolation (TFI) methods to enhance the model's understanding of the image sequences, along with a new Multi-Level dice loss (ML-Dice) that improves the vanilla dice loss by extracting ordinal relationship between rainfall rates.

img.png

Introduction

The aim of the 2023 edition of the Weather4cast competition is to predict quantitatively future high resolution rainfall events from lower resolution satellite radiances.

Repository Structure

  • checkpoints/: Contains the trained model weights.
  • models/: Contains model architecture files.
    • configurations/: Contains YAML configuration files for model training and inference.
  • utils/: Utility scripts including data loaders and evaluation scripts.
  • sub_4h.sh, sub_4h.trans.sh, sub_8h.sh: Scripts to generate submissions using the models.
  • train.py: The main training script for the models.
  • UNetTFI.yaml: The conda envirnment.
  • COPYING: The file containing the copyright information.
  • LICENSE: The license file for the project.
  • README.md: This file, explaining the project and setup.

Environment Setup

To create an environment with the required dependencies, run:

conda env create -f w4cNew.yaml

Activate the environment with:

conda activate w4cNew

Generate Submissions

To generate submissions, execute the following scripts in the repository's root directory, ensuring that the correct GPU index, configuration file, and model checkpoint path are provided. Model weights can be found in releases.

For the UNetTFI 4-hour prediction on nowcasting dataset:

sh sub_4h.sh [gpu] models/configurations/UNetTFI_4h.yaml "checkpoints/UNetTFI_4h.ckpt"

For the UNetTFI 4-hour prediction on transfer dataset:

sh sub_4h.trans.sh [gpu] models/configurations/UNetTFI_4h_trans.yaml "checkpoints/UNetTFI_4h.ckpt"

For the UNetTFI 8-hour prediction on core challenge dataset:

sh sub_8h.sh [gpu] models/configurations/UNetTFI_8h.yaml "checkpoints/UNetTFI_8h.ckpt"

Citation

@article{han2023learning,
  title={Learning Robust Precipitation Forecaster by Temporal Frame Interpolation},
  author={Lu Han, Xu-Yang Chen, Han-Jia Ye, De-Chuan Zhan},
  journal={arXiv preprint arXiv:2311.18341},
  year={2023}
}

unettfi's People

Contributors

secilia-cxy avatar hanlu-nju avatar

Stargazers

 avatar Shrimponthekeyboard avatar  avatar Ajitabh Kumar avatar  avatar

Watchers

Kostas Georgiou 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.