Open Multihuntr opened 9 months ago
Based on the newly pushed "dem fix" code, I see that the third channel for SNUNet is likely the slope, not vh/vv
. I have updated my code accordingly.
I have now run these models on a subset of the KuroSiwo dataset and got reasonable IoU numbers. Still not 100%, but, like 95% sure I've got this right now.
To make the models more accessible, I have added a
hubconf.py
. This requires instantiating a model from the current code base.With this change, on my fork, I can - from anywhere - get a pretrained SNUNet or Flood_ViT model:
Before accepting this pull request, there are some steps you need to take (at the bottom), if you want it to work using
torch.hub.load("Orion-AI-Lab/KuroSiwo", "snunet")
.Decisions
FineTunerSegmentation
model definition frommodels/model_utilites.py
into its own file. Otherwise it would import model_utilities, and thus require several other libraries.torch.save
d just the state_dict for maximum portability.Uncertainties
I am not certain about a few aspects. Can you check:
SNUNet_ECAM
?Actions needed before accepting
To make this work on the main branch, you will need to:
Then we can update the URL to point to your original codebase and keep it contained.