Skip to content

Commit f27134f

Browse files
committed
Update on the binary segmentation example script.
1 parent 5f5d5ad commit f27134f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/binary_segmentation_buildings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
# ----------------------------
7373
# Download the CamVid dataset, if needed
7474
# ----------------------------
75-
main_dir = "/tmp/examples" # Change this to your desired directory
75+
main_dir = "./examples/binary_segmentation_data/" # Change this to your desired directory
7676

77-
data_dir = os.path.join(main_dir, "data")
77+
data_dir = os.path.join(main_dir, "dataset")
7878
if not os.path.exists(data_dir):
7979
logging.info("Loading data...")
8080
os.system(f"git clone https://github.com/alexgkendall/SegNet-Tutorial {data_dir}")
@@ -496,4 +496,4 @@ def test_model(model, output_dir, test_dataloader, loss_fn, device):
496496
test_loss = test_model(model, output_dir, test_dataloader, loss_fn, device)
497497

498498
logging.info(f"Test Loss: {test_loss[0]}, IoU Score: {test_loss[1]}")
499-
logging.info(f"The outout masks are saved in {output_dir}.")
499+
logging.info(f"The output masks are saved in {output_dir}.")

0 commit comments

Comments
 (0)