Network for Vision Transformer. The pytorch version.
If this works for you, please give me a star, this is very important to me.😊
- Clone this repository
git clone https://github.com/Runist/torch_Vision_Transformer
- Install torch_Vision_Transformer from source.
cd torch_Vision_Transformer
pip install -r requirements.txt
- Download the flower dataset.
wget https://github.com/Runist/image-classifier-keras/releases/download/v0.2/dataset.zip
unzip dataset.zip
python train.py
- Open tensorboard to watch loss, learning rate etc. You can also see training process and training process and validation prediction.
tensorboard --logdir ./summary/log
python predict.py
You need to store your data set like this:
├── train
│ ├── daisy
│ ├── dandelion
│ ├── roses
│ ├── sunflowers
│ └── tulips
└── validation
├── daisy
├── dandelion
├── roses
├── sunflowers
└── tulips
Appreciate the work from the following repositories:
Code and datasets are released for non-commercial and research purposes only. For commercial purposes, please contact the authors.