FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CaffeOnACL/scripts/download_model_from_gist.sh at master · mirsys/CaffeOnACL · GitHub
mirsys
CaffeOnACL
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CaffeOnACL
/
scripts
/
download_model_from_gist.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (19 loc) · 573 Bytes
Breadcrumbs
CaffeOnACL
/
scripts
/
download_model_from_gist.sh
Copy path
File metadata and controls
24 lines (19 loc) · 573 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!
/usr/bin/env sh
GIST=
$1
DIRNAME=
${2
:-
.
/
models}
if
[
-z
$GIST
]
;
then
echo
"
usage: download_model_from_gist.sh <gist_id> <dirname>
"
exit
fi
GIST_DIR=
$(
echo
$GIST
|
tr
'
/
'
'
-
'
)
MODEL_DIR=
"
$DIRNAME
/
$GIST_DIR
"
if
[
-d
$MODEL_DIR
]
;
then
echo
"
$MODEL_DIR
already exists! Please make sure you're not overwriting anything important!
"
exit
fi
echo
"
Downloading Caffe model info to
$MODEL_DIR
...
"
mkdir -p
$MODEL_DIR
wget https://gist.github.com/
$GIST
/download -O
$MODEL_DIR
/gist.zip
unzip -j
$MODEL_DIR
/gist.zip -d
$MODEL_DIR
rm
$MODEL_DIR
/gist.zip
echo
"
Done
"
Back
|
FazBrowse Home
|
New Git URL