This repository contains the tools and models (CNN, ViT and DKL Model) for image classification.
- Requirements:
- Python >= 3.10
- Install PyTorch and torchvision following the official instructions.
- Install d2l:
- Clone the d2l repository:
git clone https://github.com/d2l-ai/d2l-en && cd d2l-en
- Delete version specification of requirements in
setup.py
. - Install d2l using pip:
pip install .
- Clone the d2l repository:
- Install other requirements:
cd /path/to/ic/ && pip install -r requirements.txt
- Append the path of this repository in python scripts:
import sys sys.path.append('/path/to/ic/')
- You can then import this package:
import ic