mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 18:18:42 -05:00
[PR #1609] [MERGED] fix(kits): fix TFLite size typo and broken pth command in raspi image-classification lab #9220
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1609
Author: @Shashank-Tripathi-07
Created: 4/30/2026
Status: ✅ Merged
Merged: 4/30/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/kits-cifar10-tflite-size-typo📝 Commits (1)
6e26011fix(kits): fix TFLite size typo and broken pth command in raspi image-classification lab📊 Changes
1 file changed (+2 additions, -3 deletions)
View changed files
📝
kits/contents/raspi/image_classification/image_classification.qmd(+2 -3)📄 Description
Summary
Two bugs in
kits/contents/raspi/image_classification/image_classification.qmd:Bug 1 -- Wrong size unit for cifar10.tflite (674MB → 674KB)
The text described the quantized TFLite model as 674MB -- but the original
.kerasmodel is only 2.0MB, and "around 1/3 of the original size" is ~674KB. 674MB would be 337x larger than the source model and bigger than the entire ImageNet training set, which is physically impossible for a CIFAR-10 classifier.Bug 2 -- Broken bash command for picamera2 venv setup
The redirect target path was split across two lines with a stray newline inside the path, producing two invalid shell commands when copy-pasted:
The broken form would: (1) redirect stdout into a directory -- shell error, and (2) try to execute
site-packages/system_site_packages.pthas a command -- another error. Students following the lab would get confusing errors and be unable to use picamera2 inside the venv.Test plan
.pthfile correctly🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.