Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serihiro/93016995f5bdd26168e1b54ee425ad2c to your computer and use it in GitHub Desktop.
Save serihiro/93016995f5bdd26168e1b54ee425ad2c to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -ne 2 ]; then
echo 'Usage: sh ./this_file.sh {image_path} {output_file_path}'
exit 1
fi
IMAGE_PATH=${1}
OUTPUT_FILE=${2}
cd $BASE_DIRECTORY
image_information=`identify -precision 16 -format "%w,%h,%B" $IMAGE_PATH`
echo "\"${IMAGE_PATH}\",${image_information}" >> $OUTPUT_FILE
#!/bin/bash
TRAIN=/path/to/google-landmark/train
OUTPUT=/path/to/output
cd ${TRAIN}
ls . | parallel --jobs 23 -a - sh examine_google-open-image-dataset_subset_resolutions.sh ${TRAIN}/{} ${OUTPUT}/output.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment