openclimatefix / skillful_nowcasting

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

Loading model using DGMR.from_pretrained("openclimatefix/dgmr") fails with missing 1 argument "use_auth_token" #76

Open Yhyyy-hhu opened 3 months ago

Yhyyy-hhu commented 3 months ago

Describe the bug

I tried to load the trained weights following the Readme. It turns out to have another Error different from previous issue, which is "_from_pretrained() missing 1 required positional argument: 'use_auth_token'"

To Reproduce

Steps to reproduce the behavior:

  1. from dgmr import DGMR
  2. model = DGMR.from_pretrained("openclimatefix/dgmr")
  3. I have tried to add the argument "use_auth_token = my hugging face token", or login my huggingface token in the terminal with my token, or set environmental variable with my token, but all turn out to fail. The Error exists. error

Expected behavior

I expect to load the pretrained model.