Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
9faf6f07
Unverified
Commit
9faf6f07
authored
11 months ago
by
Jan Buethe
Browse files
Options
Downloads
Patches
Plain Diff
added sha256 check for downloaded data
parent
ddbe4838
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
autogen.sh
+1
-1
1 addition, 1 deletion
autogen.sh
dnn/download_model.sh
+21
-0
21 additions, 0 deletions
dnn/download_model.sh
with
22 additions
and
1 deletion
autogen.sh
+
1
−
1
View file @
9faf6f07
...
@@ -9,7 +9,7 @@ set -e
...
@@ -9,7 +9,7 @@ set -e
srcdir
=
`
dirname
$0
`
srcdir
=
`
dirname
$0
`
test
-n
"
$srcdir
"
&&
cd
"
$srcdir
"
test
-n
"
$srcdir
"
&&
cd
"
$srcdir
"
dnn/download_model.sh
"
735117b
"
dnn/download_model.sh
"
8f34305a299183509d22c7ba66790f67916a0fc56028ebd4c8f7b938458f2801
"
echo
"Updating build configuration files, please wait...."
echo
"Updating build configuration files, please wait...."
...
...
This diff is collapsed.
Click to expand it.
dnn/download_model.sh
+
21
−
0
View file @
9faf6f07
...
@@ -7,4 +7,25 @@ if [ ! -f $model ]; then
...
@@ -7,4 +7,25 @@ if [ ! -f $model ]; then
echo
"Downloading latest model"
echo
"Downloading latest model"
wget https://media.xiph.org/opus/models/
$model
wget https://media.xiph.org/opus/models/
$model
fi
fi
SHA256
=
$(
command
-v
sha256sum
)
if
[
"
$?
"
!=
"0"
]
then
echo
"Could not find sha256 sum. Skipping verification. Please verify manually that sha256 hash of
${
model
}
matches
${
1
}
."
else
echo
"Validating checksum"
checksum
=
$1
checksum2
=
$(
sha256sum
$model
|
awk
'{print $1}'
)
if
[
"
$checksum
"
!=
"
$checksum2
"
]
then
echo
"checksums don't match, aborting"
exit
1
else
echo
"checksums match"
fi
fi
tar
xvomf
$model
tar
xvomf
$model
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment