File size: 465 Bytes
32b542e
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
# use 20 threads

cat val4download.txt | xargs -n 2 -P 20 wget -nc -U 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17' --timeout=1 --waitretry=0 --tries=5 --retry-connrefused -nv -O
find ../val_image -type f -size -1c -exec rm {} \;
ls -d ../val_image/* | xargs -n 1 -P 20 python check_valid.py | tee val_size_invalid.txt
xargs rm < val_size_invalid.txt
rm val_size_invalid.txt
ls ../val_image > val_valid.txt