This needs polishing and merging into main: https://github.com/cai4cai/tool-pose-annotation-gui/tree/seg-edit