Unfortunately I don’t have a minimal script to reproduce it, but have experienced when running the code in the open source projects that I’ve linked above. They are relatively complex, although the segmentation code is not so bad.