Hey no I never found a good implementation for this. One way you could potentially do it is with a sort of rasterized computation (i.e. define some grid and figure out which grid cells each polygon covers). This would be an approximate method but depending on coarseness of grid could be accurate enough probably. Don’t know if the large number of values in the raster grid would create issues for backpropogation wrt vanishing gradient but I’d guess it would probably work decent with a large enough batch size to smooth things out.