source: scripts/get_crepe.sh @ 17189b2

feature/crepe
Last change on this file since 17189b2 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
3CREPEURL=https://github.com/marl/crepe/blob/models/model-tiny.h5.bz2?raw=true
4MODELTARGET=crepe-model-tiny.h5
5SHA512=91df10316092de0d9c35ae0eaa8f6cceb49fb01f54dc74f9f1196f7f569a3f885242d1abded56c9825180552a602d9e76f2021d7cfb55cfbefb2f84c8a9f4715
6
7
8function checkmodelsum () {
9  (echo $SHA512  $MODELTARGET | sha512sum -c - ) || (echo $MODELTARGET checksum did not match?!; exit 1)
10}
11
12function fetchmodel () {
13  wget -qO- $CREPEURL | bunzip2 - > $MODELTARGET
14}
15
16( [ -f "$MODELTARGET" ] || fetchmodel ) && checkmodelsum
Note: See TracBrowser for help on using the repository browser.