rishigami / Swin-Transformer-TF

Tensorflow implementation of Swin Transformer model.
Apache License 2.0
198 stars 46 forks source link

TypeError: Failed to convert object of type <class 'tuple'> to Tensor. Contents: (None, 1, 1). Consider casting elements to a supported type. #6

Closed chenhui2016 closed 2 years ago

chenhui2016 commented 2 years ago

How to solve this problem? Thank you

rishigami commented 2 years ago

I fixed some codes. Could you try again? (P.S. I couldn't reproduce the problem. Which OS do you use?)

chenhui2016 commented 2 years ago

After you modify the code, it can run normally. Thank you very much!

chenhui2016 commented 2 years ago

Can you tell me which code you changed? I've lost your previous code

rishigami commented 2 years ago

You can check from this commit.