-
Navigate to project directory cd /path to project forlder/
-
Create Venv python -m venv bnn_env
-
Activate venv source bnn_env/Scripts/activate Linux/Mac: source bnn_env/bin/activate
-
Install dependencies pip install -r requirements.txt
-
Verify python version (3.10) python --version pip list
-
Open local jupyter notebook via terminal jupyter notebook
-
Navigate to project project/phase1_software/phase1.ipynb
-
Run Model Training To run the most recent update to the model, run cell 19 and test SW implementation with cell 14
-
Run HW Implementation To run the HW implementation the fc1_weights.npy, fc2_weights.npy, fc3_weights.npy, test_inputs_binarized.npy, and test_labels_full.npy (from phase1 folder) must be imported onto the board. Then, the entire notebook should be run and output the HW inference.
-
Deactivate venv deactivate
-
Add to .gitignore echo "bnn_env/" >> .gitignore
-
Remove from git tracking (keeps files locally) git rm -r --cached Project/bnn_env/
-
Commit the removal git add .gitignore git commit -m "Remove virtual environment from tracking"
-
Clean the large files from git history git filter-repo --path Project/bnn_env/ --invert-paths --force
-
Force push (required after history rewrite) git remote add origin https://github.com/timtran600/EECE4632.git git push origin main --force