Skip to content

Commit

Permalink
Wider buffer for roads
Browse files Browse the repository at this point in the history
  • Loading branch information
atorch committed Apr 17, 2020
1 parent 7fd0450 commit 80861a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

# Note: buffering is applied after projecting road shapes into NAIP's CRS
# For road type definitions, see https://www2.census.gov/geo/pdfs/maps-data/data/tiger/tgrshp2009/TGRSHP09AF.pdf
ROAD_BUFFER_METERS_DEFAULT = 3.0
ROAD_BUFFER_METERS = {"S1100": 5.0, "S1200": 5.0}
ROAD_BUFFER_METERS_DEFAULT = 4.0
ROAD_BUFFER_METERS = {"S1100": 6.0, "S1200": 6.0, "S1630": 6.0}

# Note: roads are buffered by this amount in order to implement CDL developed masking logic
ROAD_BUFFER_METERS_MASK = 30.0
Expand Down
2 changes: 1 addition & 1 deletion src/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def load_X_mean_and_std_train(model_name):
return np.load(infile_mean), np.load(infile_std)


def main(model_name="./saved_models/cnn_land_cover_2020_04_16_00.h5"):
def main(model_name="./saved_models/cnn_land_cover_2020_04_17_01.h5"):

config = get_config(MODEL_CONFIG)
label_encoder, _ = get_label_encoder_and_mapping()
Expand Down

0 comments on commit 80861a0

Please sign in to comment.