openclimatefix / skillful_nowcasting

Implementation of DeepMind's Deep Generative Model of Radar (DGMR) https://arxiv.org/abs/2104.00954
MIT License
214 stars 59 forks source link

Add pushing/pulling from HF Hub #17

Closed jacobbieker closed 2 years ago

jacobbieker commented 2 years ago

Pull Request

Description

This PR adds being able to load and push weights from HF Hub, making it a lot easier to share weights.

Fixes #

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

Checklist:

codecov-commenter commented 2 years ago

Codecov Report

Merging #17 (9a49b10) into main (3e73cfa) will increase coverage by 1.90%. The diff coverage is 86.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   69.68%   71.58%   +1.90%     
==========================================
  Files          11       12       +1     
  Lines         696      806     +110     
==========================================
+ Hits          485      577      +92     
- Misses        211      229      +18     
Impacted Files Coverage Δ
dgmr/__init__.py 100.00% <ø> (ø)
dgmr/layers/Attention.py 100.00% <ø> (ø)
dgmr/layers/ConvGRU.py 100.00% <ø> (ø)
dgmr/layers/CoordConv.py 24.24% <ø> (ø)
dgmr/layers/__init__.py 100.00% <ø> (ø)
dgmr/losses.py 22.15% <ø> (ø)
dgmr/hub.py 59.09% <59.09%> (ø)
dgmr/common.py 98.93% <100.00%> (ø)
dgmr/dgmr.py 51.85% <100.00%> (ø)
dgmr/discriminators.py 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c7d0cb0...9a49b10. Read the comment docs.