Removing unecessary function

parent 5a78b607
Pipeline #51376 failed with stage
in 134 minutes and 40 seconds
import os
import bob.extension.download
def download_model(model_path, urls, zip_file="model.tar.gz"):
"""
Download and unzip a model from some URL.
Parameters
----------
model_path: str
Path where the model is supposed to be stored
urls: list
List of paths where the model is stored
zip_file: str
File name after the download
"""
if not os.path.exists(model_path):
os.makedirs(model_path, exist_ok=True)
zip_file = os.path.join(model_path, zip_file)
bob.extension.download.download_and_unzip(urls, zip_file)
# gets sphinx autodoc done right - don't remove it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment