Before running this project, you need to:
- Get the Kaggle API credentials:
- Create a Kaggle account if you don't have one already
- Go to your Kaggle account settings (https://www.kaggle.com/account)
- Scroll down to the API section and click "Create New API Token"
- This will download a
kaggle.json
file containing your API credentials - Place the downloaded
kaggle.json
file inC:\Users\INTEL\.kaggle
-
Clone this repository:
git clone https://github.com/aye-shadow/neural-network-acceleration.git cd neural-network-acceleration/
-
Set up a virtual environment (Linux):
python3 -m venv venv
(Windows):
python -m venv venv
-
Activate the virtual environment (Linux):
source venv/bin/activate
(Windows):
.\venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Download the dataset (Linux):
python3 src/extract_dataset.py
(Windows):
python src/extract_dataset.py
This will download the MNIST dataset from Kaggle and extract the necessary files to the data directory.
For detailed usage instructions and implementation details, refer to the README files inside each v{x} folder in the src directory:
- src/v1/README.md - Version 1 (CPU)
- src/v2/README.md - Version 2 (Naive GPU)
- src/v3/README.md - Version 3 (Optimized GPU)
- src/v3/README.md - Version 4 (Tensor Cores Utilization)