rishigami / Swin-Transformer-TF

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

no module name 'swintransformer' error #10

Closed HunarAA closed 2 years ago

HunarAA commented 2 years ago

I wounder where the from swintransformer import SwinTransformer come from? I tried to pip install it, it also said that there is no such module. How can I overcome this problem?

rishigami commented 2 years ago

This is a code snippet from colab notebook.

!git clone https://github.com/rishigami/Swin-Transformer-TF.git

import sys
sys.path.append('/content/Swin-Transformer-TF')
from swintransformer import SwinTransformer

Colab example here https://colab.research.google.com/drive/1v1yrlaQUDluwJvBsgOBfJPlmmDW7-fYk?usp=sharing

HunarAA commented 2 years ago

thank you. solved my problem