-
Notifications
You must be signed in to change notification settings - Fork 6
/
set_cropper.py
35 lines (24 loc) · 1.74 KB
/
set_cropper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Galen Weld, Feb 2019
# Use this to extract sliding window datasets crops and sidecars
# from CSVs produced using make_train_test_sets.ipynb
# row in the csv should be
# Pano ID, SV_x, SV_y, Label, Photog Heading, Heading, Label ID
from GSVutils.utils import bulk_extract_crops
import os
# use this to make new sliding window crops for analysis
#bulk_extract_crops('sliding_window_crops_to_make.csv', 'sliding_window/new_sliding_window_crops/')
# this to make dataset
#bulk_extract_crops('dataset_csvs/Val.csv', 'new_ds_exports/Val/')
# this to make old dataset
#bulk_extract_crops('new_old_dataset_csvs/Val.csv', '/mnt/e/old_dataset/val/')
#bulk_extract_crops('new_old_dataset_csvs/Train.csv', '/mnt/e/old_dataset/train/')
# this to make newberg centered dataset
#bulk_extract_crops('new_cities/newberg-labels-researchers.csv', '/mnt/g/newberg_center_crops_researchers/', '/mnt/g/scrapes_dump_newberg')
#bulk_extract_crops('new_cities/newberg-labels.csv', '/mnt/e/newberg_center_crops_all/', '/mnt/e/scrapes_dump_newberg')
#bulk_extract_crops('new_cities/newberg-labels-null.csv', '/mnt/g/newberg_center_crops_researchers/', '/mnt/g/scrapes_dump_newberg')
# use this to make seattle centered dataset
#bulk_extract_crops('new_cities/seattle-labels-researcher-plus-validated.csv', '/mnt/g/seattle_center_crops_researchers/', '/mnt/g/scrapes_dump_seattle')
bulk_extract_crops('new_cities/seattle-labels-null.csv', '/mnt/g/seattle_center_crops_researchers/', '/mnt/g/scrapes_dump_seattle')
# use this to make ground truth centered crops dataset
#bulk_extract_crops('ground_truth/ground_truth_labels.csv', '/mnt/g/ground_truth_cc_dataset/')
#bulk_extract_crops('ground_truth/ground_truth_labels-null.csv', '/mnt/g/ground_truth_cc_dataset/')