feature/crepe
Last change
on this file since 514a87c was
f335a9b,
checked in by Paul Brossier <piem@piem.org>, 3 years ago
|
[scripts] script to fetch crepe model from upstream repo
|
-
Property mode set to
100755
|
File size:
532 bytes
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | CREPEURL=https://github.com/marl/crepe/blob/models/model-tiny.h5.bz2?raw=true |
---|
4 | MODELTARGET=crepe-model-tiny.h5 |
---|
5 | SHA512=91df10316092de0d9c35ae0eaa8f6cceb49fb01f54dc74f9f1196f7f569a3f885242d1abded56c9825180552a602d9e76f2021d7cfb55cfbefb2f84c8a9f4715 |
---|
6 | |
---|
7 | |
---|
8 | function checkmodelsum () { |
---|
9 | (echo $SHA512 $MODELTARGET | sha512sum -c - ) || (echo $MODELTARGET checksum did not match?!; exit 1) |
---|
10 | } |
---|
11 | |
---|
12 | function fetchmodel () { |
---|
13 | wget -qO- $CREPEURL | bunzip2 - > $MODELTARGET |
---|
14 | } |
---|
15 | |
---|
16 | ( [ -f "$MODELTARGET" ] || fetchmodel ) && checkmodelsum |
---|
Note: See
TracBrowser
for help on using the repository browser.