Skip to content

Commit

Permalink
CRF post-process option removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuscombe-usgs committed Nov 27, 2022
1 parent 32380ea commit e735ab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion install/zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies:
- pip
- plotly
- natsort
- pydensecrf
- matplotlib
- pip:
- doodleverse_utils
Expand Down
7 changes: 2 additions & 5 deletions scripts/select_model_and_batch_process_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,7 @@ def download_url(url, save_path, chunk_size=128):
if not 'TESTTIMEAUG' in locals():
print("TESTTIMEAUG not found in config file(s). Setting to False")
TESTTIMEAUG = False
#look for do_crf in config
if not 'DO_CRF' in locals():
print("TESTTIMEAUG not found in config file(s). Setting to False")
DO_CRF = False

if not 'WRITE_MODELMETADATA' in locals():
print("WRITE_MODELMETADATA not found in config file(s). Setting to False")
WRITE_MODELMETADATA = False
Expand All @@ -396,7 +393,7 @@ def download_url(url, save_path, chunk_size=128):
# Import do_seg() from doodleverse_utils to perform the segmentation on the images
for f in tqdm(sample_filenames):
try:
do_seg(f, M, metadatadict, sample_direc,NCLASSES,N_DATA_BANDS,TARGET_SIZE,TESTTIMEAUG, WRITE_MODELMETADATA,DO_CRF,OTSU_THRESHOLD)
do_seg(f, M, metadatadict, sample_direc,NCLASSES,N_DATA_BANDS,TARGET_SIZE,TESTTIMEAUG, WRITE_MODELMETADATA,OTSU_THRESHOLD)
except:
print("{} failed. Check config file, and check the path provided contains valid imagery".format(f))

Expand Down

0 comments on commit e735ab4

Please sign in to comment.