Skip to main content

Quick-Tune: Quickly Learning Which Pretrained Model to Finetune and How

Project description

QuickTune (WIP)

Quick-Tune: Quickly Learning Which Pre Trained Model to Fine Tune and How ICLR2024

This repo contains the code for running experiments with QuickTune

Architecture

Run QuickTune

Prepare Environment

To install QuickTune, you can simply use pip:

pip install quicktune

This project depends on a custom version of timm, which is not available on PyPI. You can install it by running the following command:

pip install git+https://github.com/rapanti/qt_timm

Download the QuickTune Meta-Dataset:

wget https://rewind.tf.uni-freiburg.de/index.php/s/oMxC5sfrkA53ESo/download/qt_metadataset.zip
unzip qt_metadataset.zip

Download the metalearned Optimizer

wget https://rewind.tf.uni-freiburg.de/index.php/s/XBsMjps5n3N9we6

Prepare Custom Dataset

The custom dataset must be in Pytorch's ImageFolder format, e.g. download the Imagenette dataset:

wget https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-320.tgz
tar -xvzf imagenette2-320.tgz

Modify the quicktuning script in the examples folder to your needs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quicktune-0.0.4.tar.gz (69.8 kB view hashes)

Uploaded Source

Built Distribution

quicktune-0.0.4-py3-none-any.whl (80.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page