This repository contains the code to reproduce all evaluations in the paper "Towards Foundation Models for Digital Dermatology".
Run make
for a list of possible targets.
Run this command for installation
make install
To reproduce our experiments, we list the detailed comments needed for replicating each experiment below. Note that our experiments were run on a DGX Workstation 1. If less computational power is available, this would require adaptations of the configuration file.
kNN evaluation (i.e. Figure 1 and Table 2):
python -m src.knn_figs --knn_performance
Linear evaluation (i.e. Table 2):
python -m src.knn_figs --linear_evaluation
kNN / linear few-shot evaluation (i.e. Figure 2):
python -m src.knn_figs
black
for code styleisort
for import sorting- docstring style:
sphinx
pytest
for running tests
To set up your dev environment run:
pip install -r requirements.txt
# Install pre-commit hook
pre-commit install