Skip to content

Merging slp files or training over multi slp files #1159

Answered by roomrys
deemok7 asked this question in Help!
Discussion options

You must be logged in to vote

Use this "definitely not for production" code at your own discretion. Merging usually requires user-input for how to handle merging conflicts, but this code only allows the users to specify one method for handling ALL merge conflicts (without first knowing what those conflicts might be). Always save to a different filename (rather than overwriting a pre-existing project)!

I've minimally tested and it seems to work. @mmmahdiii Let me know how it goes!

import os

import sleap
from sleap import Skeleton, Labels
from sleap.gui.app import main as sleap_label

USE_BASE_STRING = "Use base, discard conflicting new instances"
USE_NEW_STRING = "Use new, discard conflicting base instances"
USE_NEITH…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@deemok7
Comment options

Comment options

You must be logged in to vote
2 replies
@deemok7
Comment options

@roomrys
Comment options

Answer selected by roomrys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants