Skip to content

Reencoded Vid Adding Extra Frame #2095

Answered by roomrys
jannhan asked this question in Help!
Jan 23, 2025 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

Hi @jannhan,

I created this script that will shift the labels for you.

  1. You will need to download and unzip.

  2. Modify the if __name__ == "__main__" section of the file where I left a few TODOs:

    if __name__ == "__main__":
        ds = r"path/to/dataset.slp"  # TODO: Replace with the path to the dataset file
        output_ds = (
            r"output_dataset.slp"  # TODO: Replace with the path to the output dataset file
        )
    
        # Load the labels and videos from the dataset file
        labels, videos = load_labels_and_videos(ds)
    
        # TODO: Remove this block of code (AFTER first run if using `shift_per_video`)
        raise NotImplementedError(
            "\n\n1. See print statement above for video indices (…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@jannhan
Comment options

@roomrys
Comment options

@jannhan
Comment options

@roomrys
Comment options

Answer selected by jannhan
@jannhan
Comment options

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