Fine-tune the Vision Transformer (ViT) using LoRA and Optuna for hyperparameter search.
To install the environment, you need to have Anaconda installed.
Replace [path_to]
with the path to where you have downloaded the folder.
cd [path_to]/huggingface_image_classifier
conda env create -f env.yml
conda activate hugging_face
To get help for main.py
, you can start with:
python main.py -h
Run the main script with:
python main.py