summaryrefslogtreecommitdiffstats
path: root/ml/dlib/tools/imglab/copy_imglab_dataset
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:19:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:53:24 +0000
commitb5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch)
treed4d31289c39fc00da064a825df13a0b98ce95b10 /ml/dlib/tools/imglab/copy_imglab_dataset
parentAdding upstream version 1.44.3. (diff)
downloadnetdata-upstream.tar.xz
netdata-upstream.zip
Adding upstream version 1.46.3.upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/dlib/tools/imglab/copy_imglab_dataset')
-rwxr-xr-xml/dlib/tools/imglab/copy_imglab_dataset22
1 files changed, 0 insertions, 22 deletions
diff --git a/ml/dlib/tools/imglab/copy_imglab_dataset b/ml/dlib/tools/imglab/copy_imglab_dataset
deleted file mode 100755
index 8b44ed166..000000000
--- a/ml/dlib/tools/imglab/copy_imglab_dataset
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-if [ "$#" -ne 2 ]; then
- echo "This script copies an imglab XML file and its associated images to a new folder."
- echo "Notably, it will avoid copying unnecessary images."
- echo "Call this script like this:"
- echo " ./copy_dataset some_file.xml dest_dir"
- exit 1
-fi
-
-XML_FILE=$1
-DEST=$2
-
-
-
-mkdir -p $DEST
-
-# Get the list of files we need to copy, then build the cp statements with 1000 files at most in each statement, then tell bash to run them all.
-imglab --files $XML_FILE | xargs perl -e 'use File::Spec; foreach (@ARGV) {print File::Spec->abs2rel($_) . "\n"}' | sort | uniq | xargs -L1000 echo | xargs -I{} echo cp -a --parents {} $DEST | bash
-
-convert_imglab_paths_to_relative $XML_FILE > $DEST/$(basename $XML_FILE)
-