8000 GitHub - Runist/Swin-Transformer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Runist/Swin-Transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swin-Transformer

sw.png

Network for Swin-Transformer. The pytorch version.

If this works for you, please give me a star, this is very important to me.😊

  1. Clone this repository.
git clone https://github.com/Runist/Swin-Transformer
  1. Install code from source.
cd Swin-Transformer
pip install -r requirements.txt
  1. Download the flower dataset.
  2. Download pretrain weights, the url in model.py.
  3. Start train your model.
python train.py --train-data-dir "train-data-path" --val-data-dir "val-data-path --device cuda:0
  1. Get prediction of model.
python predict.py
  1. Evaluate model.
python create_confusion_matrix.py --weights './weights/model-9.pth' --val-data-dir "val-data-path --device cuda:0

Train your dataset

You need to store your data set like this:

├── train
│   ├── daisy
│   ├── dandelion
│   ├── roses
│   ├── sunflowers
│   └── tulips
└── validation
    ├── daisy
    ├── dandelion
    ├── roses
    ├── sunflowers
    └── tulips

Reference

Appreciate the work from the following repositories:

License

Code and datasets are released for non-commercial and research purposes only. For commercial purposes, please contact the authors.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0