From bbca8365d08cc39f31edbba902d8a6c98d7d5837 Mon Sep 17 00:00:00 2001 From: Stephan Hilb <stephan@ecshi.net> Date: Sat, 29 Jan 2022 21:03:56 +0100 Subject: [PATCH] add middlebury download script --- scripts/download-middlebury.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/download-middlebury.sh diff --git a/scripts/download-middlebury.sh b/scripts/download-middlebury.sh new file mode 100755 index 0000000..80978e1 --- /dev/null +++ b/scripts/download-middlebury.sh @@ -0,0 +1,21 @@ +#/bin/sh -e + +if [ $# -eq 0 ]; then + echo -e "usage: $0 <target-path>" + exit 0; +fi + +path=$1 + +( +cd $1 + +curl -O "https://vision.middlebury.edu/flow/data/comp/zip/other-gray-twoframes.zip" +curl -O "https://vision.middlebury.edu/flow/data/comp/zip/other-gt-flow.zip" +unzip "other-gray-twoframes.zip" +unzip "other-gt-flow.zip" +cp -r "other-data-gray"/* ./ +cp -r "other-gt-flow"/* ./ +rm -rf "other-data-gray" "other-gray-twoframes.zip" +rm -rf "other-gt-flow" "other-gt-flow.zip" +) -- GitLab