Last active
July 11, 2019 23:59
-
-
Save serihiro/93016995f5bdd26168e1b54ee425ad2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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