Datasets:
Tasks:
Image Segmentation
Formats:
imagefolder
Size:
10K - 100K
Tags:
remote-sensing
land-cover
satellite-imagery
aerial-imagery
semantic-segmentation
weak-supervision
License:
Download scripts/chesapeake/verify_state.py from rishabh-sat/walkability-project: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/datasets/rishabh-sat/walkability-project/resolve/main/scripts/chesapeake/verify_state.py
- Command line
-
hf download hf://datasets/rishabh-sat/walkability-project/scripts/chesapeake/verify_state.py
-
curl -L -o verify_state.py https://huggingface.co/datasets/rishabh-sat/walkability-project/resolve/main/scripts/chesapeake/verify_state.py
491 Bytes
| import sys, os | |
| state, listfile, dest = sys.argv[1:4] | |
| exp = {} | |
| for line in open(listfile): | |
| n, s = line.rstrip('\n').split('\t') | |
| exp[n.replace('lcmcvpr2019/cvpr_chesapeake_landcover/', '')] = int(s) | |
| bad = [n for n, s in exp.items() if not os.path.exists(os.path.join(dest, state, n)) or os.path.getsize(os.path.join(dest, state, n)) != s] | |
| print(f"{state}: verified {len(exp)-len(bad)}/{len(exp)} files, {sum(exp.values())/1e9:.1f} GB, mismatched={len(bad)}") | |
| sys.exit(1 if bad else 0) | |