I've done a little work on this professionally, and while I can't discuss our solution, here are some links that I turned up doing research that might be what you're looking for.
https://www.robots.ox.ac.uk/~vgg/publications/2016/Chung16a/chung16a.pdf
https://arxiv.org/abs/2008.10010