This repository is the official PyTorch implementation of Dynamic Metric Learning with Cross-Level Concept Distillation.
The three DyML datasets can be downloaded from here. Put the dataset files on ./datasets.
To install requirements:
pip install -r requirements.txt
To train the proposed CLCD method, run the following commands:
bash command.sh
or
bash command_product.sh
We tested our code on a linux machine with two Nvidia RTX 3090 GPU cards.