Implements topology-aware loss function; resolves #133#135
Implements topology-aware loss function; resolves #133#135daniel-j-h wants to merge 1 commit intomasterfrom
Conversation
6c282db to
424b91f
Compare
|
Daniel, Would it be possible to publish your roads dataset online ? And as you could imagine would be interesting to compare with the others losses (mIoU and Lovasz) |
|
Hey I'm currently not allowed to push internal data outside. That said you can create such a dataset on your own using the |
|
Well, the point for a decent roads extraction opendataset is less the imagery than the labels :) |
|
To be honest right now for trying things out I'm really just using the road extractor on OpenStreetMap data. |
|
Another idea I had is to optimize graph based connectivity directly in the loss function as in: set up floyd warshall all-pair shortest path as a loss function and let's optimize the adjacency matrix to change graph based edge weights for edges where there are roads. Sketched out in https://gist.github.com/daniel-j-h/7b8c43fcdb9ddacaf0f490efe614d717 |

First try at a topology-aware loss function
The idea is to optimize for topology like connectivity directly instead of just for pixel-wise loss.
Here is an high-level example from the first paper of what we want to achieve:
Here's a quick rundown of how it works:
This is a bit experimental right now; we need to
This could be interesting to you @DragonEmperorG and @ocourtin since you've been contributing the road extraction and the recent loss function changes, respectively.