Finetune PyTorch Image Models with TIMM
Project description
FIMM
Finetune PyTorch Image Models with TIMM
This project provides a simple way to finetune PyTorch Image Models with TIMM.
Installation
To install FIMM (fimm), you can simply use pip:
pip install fimm
Install from source
To install from source, you can clone this repo and install with pip:
git clone https://github.com/rapanti/fimm
pip install -e fimm # -e for editable mode
Usage
To use FIMM, you can simply run the follwing command to train or finetune a model:
train --data-dir /path/to/dataset --model resnet50 --experiment resnet50 # this trains a resnet50 model from scratch
train --data-dir /path/to/dataset --model resnet50 --experiment resnet50 --pretrained # this finetunes a resnet50 model
To validate the performance of a model, you can simply run the following command:
validate --data-dir /path/to/eval/dataset --model resnet50 --checkpoint output/train/resnet50/model_best.pth.tar # this tests the resnet50 model
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fimm-0.0.3.tar.gz.
File metadata
- Download URL: fimm-0.0.3.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ca04bb9b75b7426860ffafd6d1a00dbfba0126a039da49ada4cda02b3ffd0bf
|
|
| MD5 |
3f5f68bffc98e00eb452156f22f67d10
|
|
| BLAKE2b-256 |
4c5a0c4a5788286f62ce05c1423a013c1e4ee942eb03af5518f5d868a2d28e22
|
File details
Details for the file fimm-0.0.3-py3-none-any.whl.
File metadata
- Download URL: fimm-0.0.3-py3-none-any.whl
- Upload date:
- Size: 43.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72aa55dfb0f6195439fc644987327fae141bc8b0c58a6d0db809fd0b79b4b917
|
|
| MD5 |
dc59234484a2b435e3db8380fbb610a5
|
|
| BLAKE2b-256 |
f3d46239442ca6678702fe0f2f2fa771424de1af1aa0bb3cd5175d8c73468324
|