Skip to content

Commit

Permalink
Merge pull request #86 from jmisilo/jmisilo/fix/model-weights
Browse files Browse the repository at this point in the history
fix: update model weights IDs in downloads.py file
  • Loading branch information
jmisilo committed Oct 3, 2023
2 parents 96a7868 + d542b95 commit 8afd2a6
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/utils/downloads.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
'''
"""
Utility functions for loading weights.
'''
"""

import gdown

def download_weights(checkpoint_fpath, model_size='L'):
'''
Downloads weights from Google Drive.
'''

download_id = '12h-NgryAf6zZdA1KclHdfzU35D1icjEp' if model_size.strip().upper() == 'L' else '1p91KBj-oUmuMfG2Gc33tEN5Js5HpV8YH'

gdown.download(f'https://drive.google.com/uc?id={download_id}', checkpoint_fpath, quiet=False)
def download_weights(checkpoint_fpath, model_size="L"):
"""
Downloads weights from Google Drive.
"""

download_id = (
"1pSQruQyg8KJq6VmzhMLFbT_VaHJMdlWF"
if model_size.strip().upper() == "L"
else "1Gh32arzhW06C1ZJyzcJSSfdJDi3RgWoG"
)

gdown.download(
f"https://drive.google.com/uc?id={download_id}", checkpoint_fpath, quiet=False
)

0 comments on commit 8afd2a6

Please sign in to comment.