Repository navigation
evaluate_unet.py: "RMSE vs USGS" is always ~0 m because it uses the transects file #134
arpitparashar06
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi @fwitmer @Ritika-K7,
I was going through
evaluate_unet.pyto understand how the Sept 4/6 evaluation works, and noticed that "RMSE vs USGS" always comes out ~0 m.What's happening
CoastlineExtraction/training_pipeline/evaluate_unet.py
Lines 333 to 341 in 300c1a6
CoastlineExtraction/training_pipeline/evaluate_unet.py
Lines 419 to 420 in 300c1a6
usgs_gdfis loaded from the transects file and then passed tocompute_transect_rmseas the true coastline. So the predicted coastline gets measured against the transects themselves. Every predicted point already lies on a transect, so the distance is always ~0, however good or bad the prediction is.Red = Deering transects (what the code uses as the USGS coastline), blue =
Deering_shorelines_2016.shp.Where it came from
The older
run_inference_sept_4_6.pyusedDeering_shorelines_2016.shphere:CoastlineExtraction/training_pipeline/run_inference_sept_4_6.py
Lines 562 to 563 in c48f736
It looks like this changed when that script was merged into
evaluate_unet.pyin 2e6bd5b. The USGS column in the 2026 report (43–75 m) looks like it came from the older script, so the report numbers seem fine.Fix
I've opened #133. It loads
Deering_shorelines_2016.shpasusgs_gdfand keeps the transects in a separate variable.Questions
Deering_shorelines_2016.shpthe right USGS reference here, or should it be a different file?Thanks!
All reactions