Skip to content
Discussion options

You must be logged in to vote
        if random.choice([True, False]):
            RN = np.random.randint(-45, 45, 1).item()/100
            Rrotate = Rotate(angle=(0, 0, RN)) <-----PROBLEM, 
            img = Rrotate(img)
            lab = Rrotate(lab)
    return img, lab

Replies: 2 comments 2 replies

Comment options

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

wyli Aug 8, 2022
Collaborator

@markvvw
Comment options

Answer selected by wyli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4858 on August 08, 2022 13:57.