-
set up a virtual environment.
conda create -n ltrain -y python=3.11 conda activate ltrain pip install torch torchvision --index-url https://download.pytorch.org/whl/cu129 pip install wandb pip install "lightly-train[wandb,timm]" pip install datasets matplotlib opencv-python -
prepare imagenet100 dataset
mkdir dataset wget https://huggingface.co/datasets/ilee0022/ImageNet100/resolve/main/label2text.json -P dataset -
train resnet18 with imagenet100 dataset
python train.py // 'best_model.pth' will be generated in checkpoint directory. -
check a trained resnet18 with imagenet100 dataset
python infer.py
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|