Skip to content
Snippets Groups Projects
Commit 4887f023 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Removing unecessary function

parent 5a78b607
No related branches found
No related tags found
1 merge request!112Feature extractors
Pipeline #51376 failed
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment