Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bessouat40/vit-transformers-finetuning

vision-transformers-finetunning
https://github.com/bessouat40/vit-transformers-finetuning

artificial-intelligence computer-vision fine-tuning huggingface-transformers python transformers

Last synced: about 2 months ago
JSON representation

vision-transformers-finetunning

Awesome Lists containing this project

README

        

# Fine tunning of a ViT transformers model for image classification

ViT is a transformers model that can be used for image classification.
This repository will show you how to fine tune this model with your own database.

## Requirements

### Python dependencies

First you need to install all python libraries :

```bash
python -m pip install -r requirements.txt
```

### Data folder structure

Create 3 subfolders : `test`, `train`, `val`.

Into this three folders, create a folder for each category of your data.

## Usage

```bash
python runner.py
```

## Inference Test

```bash
python inferenceTest.py
```