Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.face
Commits
4887f023
Commit
4887f023
authored
Jun 10, 2021
by
Tiago de Freitas Pereira
Browse files
Removing unecessary function
parent
5a78b607
Pipeline
#51376
failed with stage
in 134 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/embeddings/__init__.py
View file @
4887f023
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment