Skip to content
Discussion options

You must be logged in to vote
        annos = [
            utils.transform_instance_annotations(annotation, [transform], image.shape[1:])
            for annotation in dataset_dict.pop("annotations")
        ]

to

        annos = [
            utils.transform_instance_annotations(annotation, [transform], image.shape[1:])
            for annotation in anns
        ]

The code is copied from doc, I forget to check variable, and it works.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Shuntw6096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant