Created
October 31, 2019 12:00
-
-
Save peter0749/1e571b08a190b495db901e99c1d3b3c2 to your computer and use it in GitHub Desktop.
Revisions
-
peter0749 created this gist
Oct 31, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #!/bin/bash ls imagenet_subset | while read line; do file "./imagenet_subset/$line" | grep -P "^.*: .*image data, " 1>/dev/null ; if [[ $? -ne 0 ]] ; then rm -f "./imagenet_subset/$line" ; fi ; done