rishigami / Swin-Transformer-TF

Tensorflow implementation of Swin Transformer model.
Apache License 2.0
200 stars 49 forks source link

Unable to pip install the swin transformer package #21

Open sameersharma00747 opened 1 year ago

rabiaedayilmaz commented 1 year ago

You can use this repo as the following:

1) Clone this repo by git clone https://github.com/rishigami/Swin-Transformer-TF

2) Add this path of cloned repo to the system by

import sys
sys.path.append("/path/to/repo/Swin-Transformer-TF")

3) You can use it now! Example:

from swintransformer import SwinTransformer

swin_model = SwinTransformer('swin_base_384', include_top=False, pretrained=True)