This folder is a GitHub Pages site for iCAN.
- Report view: renders Markdown reports from
reports/*.md(generated byrender_predictions_report.py) - Data view: loads JSON datasets from
data/*.json, supports search + filters, and shows a detail panel - Images: uses compressed thumbnails from
thumbs/for fast loading
Because the site uses fetch(), you should serve it from a local web server (not file://).
From the repo root:
python3 -m http.server 8000Then open http://localhost:8000/iCAN.github.io/.
iCAN.github.io/index.html: UIiCAN.github.io/app.js: site logiciCAN.github.io/styles.css: stylingiCAN.github.io/data/: prediction datasets (*.json) + the generatedmanifest.jsoniCAN.github.io/reports/: report markdown files (*.md)iCAN.github.io/thumbs/: generated WebP thumbnails for report + data images
- Generate a report Markdown from your JSON:
python3 render_predictions_report.py path/to/predictions_new_run.json- Copy the JSON + report into the site:
cp path/to/predictions_new_run.json iCAN.github.io/data/
cp path/to/predictions_new_run.md iCAN.github.io/reports/- Regenerate the site manifest (so it appears in the sidebar):
python3 tools/build_site_manifest.py- Generate thumbnails (so images show in Report + Data view, without shipping full-res images):
python3 tools/generate_thumbnails.pyThe JSON format expected is an array of objects (like your predictions_*.json files).
GitHub Pages cannot list directories at runtime, so the site reads:
iCAN.github.io/data/manifest.json
This file is generated by:
python3 tools/build_site_manifest.pyIt scans:
iCAN.github.io/data/*.json(excludingmanifest.json)iCAN.github.io/reports/*.md
and includes any dataset where both files exist with the same basename.
The generated reports reference images like:
detections/detections-YYYYMMDD/<image>.jpg
Some reports may instead reference collection folders like:
Collection-Detections-YYYYMMDD/<image>.jpg
To keep the repo small and the site fast, we publish thumbnails only.
python3 tools/generate_thumbnails.pyThis writes WebPs under:
iCAN.github.io/thumbs/<original-image-src>.webp
The website automatically prefers these thumbnails for:
<img src="...">in reports- the image preview in the Data tab detail panel
On GitHub:
- Repo → Settings → Pages
- Source: “Deploy from a branch”
- Branch:
main - Folder:
/iCAN.github.io
Then your site will be available at your GitHub Pages URL.