The result
Classification and local conversation services integrated into the team’s image-to-summary prototype.
Offline classification and follow-up explanations
Team hackathon prototype · exploratory skin-lesion analysis

Enabled offline lesion classification and follow-up explanations by building the ONNX classification API and local LLM service within a three-person team prototype.
Interface details and context from the project.



From the repository
End-to-end skin lesion analysis demo application with:
The application flow is:
MadData2026 is a local-first dermatology triage demo intended for hackathon and offline scenarios. It combines computer vision (lesion localization + classification) with an LLM-generated summary and follow-up Q&A interface.
This guide is written for Windows PowerShell and matches the current startup script.
Install the following first:
Ollama install (winget):
winget install -e --id Ollama.Ollama --source winget
git clone <your-repo-url>
cd MadData2026
The launcher expects this exact interpreter path:
Backend\Inference\.venv-qnn\Scripts\python.exe
Create it:
python -m venv Backend\Inference\.venv-qnn
Activate it:
Backend\Inference\.venv-qnn\Scripts\Activate.ps1
Upgrade pip:
python -m pip install --upgrade pip
Install Inference dependencies:
python -m pip install -r Backend\Inference\requirements.txt
Install Orchestrator dependencies:
python -m pip install -r Backend\src\requirements.txt
Install Local LLM wrapper dependencies:
python -m pip install -r Backend\Local_llm\requirements.txt
If you are running Snapdragon NPU/QNN inference, install your QNN-enabled ONNX Runtime wheel as needed for your device.
npm.cmd --prefix Frontend install
The inference service needs classifier + segmenter models available in Backend\Inference\models.
If models are not already present, run:
cd Backend\Inference
..\.venv-qnn\Scripts\python.exe download_hf_models.py --out-dir models
cd ..\..
Optional (if you need to export classifier ONNX from HF snapshot):
Backend\Inference\.venv-qnn\Scripts\python.exe Backend\Inference\export_hf_to_onnx.py
The startup script will auto-pull the configured model (qwen2.5:3b by default). You can also pre-pull manually:
"$env:LOCALAPPDATA\Programs\Ollama\ollama.exe" pull qwen2.5:3b
This project includes a dedicated Workbench workflow script to optimize and validate the classifier for Snapdragon targets:
Backend/Inference/ai_hub_workbench.pyBackend/Inference/requirements.workbench.txtThis flow performs the canonical Qualcomm AI Hub pipeline:
The profile job URL/output is your evidence that the optimized model was compiled and profiled on Qualcomm-supported target hardware/runtime.
Use the same Python environment used by your inference stack:
Backend\Inference\.venv-qnn\Scripts\Activate.ps1
python -m pip install -r Backend\Inference\requirements.workbench.txt
Option 1 (recommended helper script in repo):
cd Backend/Inference
bash setup_qaihub_auth.sh
Option 2 (manual):
qai-hub configure --api_token <YOUR_QAIHUB_API_TOKEN>
From repo root:
Backend\Inference\.venv-qnn\Scripts\python.exe Backend\Inference\ai_hub_workbench.py --device "Samsung Galaxy S25 (Family)" --runtime tflite
What you will get in terminal output:
Save those URLs/screenshots for your hackathon submission deck.
If you want a quantized variant for better edge performance:
Backend\Inference\.venv-qnn\Scripts\python.exe Backend\Inference\ai_hub_workbench.py --device "Samsung Galaxy S25 (Family)" --runtime tflite --quantize --calibration-dir "Backend/Inference/imagenette_samples/images" --calibration-samples 100
Quantization flow adds:
powershell -ExecutionPolicy Bypass -File start_all_services.ps1
8000.Include these in your hackathon presentation:
From repo root, run:
powershell -ExecutionPolicy Bypass -File start_all_services.ps1
This command launches:
Open:
If your repo path differs from the default or you want a different model:
powershell -ExecutionPolicy Bypass -File start_all_services.ps1 -RepoRoot "C:\path\to\MadData2026" -ModelName "qwen2.5:3b"
http://127.0.0.1:3000GET /healthPOST /infer (multipart field: file or image)POST /infer/debugPOST /api/body-partPOST /api/diagnosePOST /api/chatGET /healthPOST /v1/chat/completions (OpenAI-compatible)After startup command:
http://127.0.0.1:30008000, 8080, 9000, 11434)ollama serve port conflict (11434)start_all_services.ps1:
LLM_MAX_TOKENSOLLAMA_MAX_TOKENSLLM_TIMEOUT_SECONDSBackend\Inference\.venv-qnn\Scripts\python.exeBackend\Inference\.venv-qnn\Scripts\python.exe Backend\Inference\download_hf_models.py --out-dir Backend\Inference\models
If npm fails with script policy error, use:
npm.cmd --prefix Frontend install
Pass -RepoRoot explicitly:
powershell -ExecutionPolicy Bypass -File start_all_services.ps1 -RepoRoot "C:\Users\YourUser\MadData2026"
MadData2026/
├─ start_all_services.ps1
├─ Backend/
│ ├─ Inference/ # Segmentation + classification API
│ ├─ Local_llm/ # Ollama wrapper API (OpenAI-compatible)
│ └─ src/ # Orchestrator API
└─ Frontend/ # React web app
Continue exploring · 34 projects

Fullstack

ML & AIViewing

ML & AI

ML & AI
Distributed Systems

Fullstack

ML & AI
Distributed Systems

Distributed Systems
Distributed Systems
Distributed Systems

Data Engineering
Data Engineering

Data Engineering

Data Engineering

Data Engineering

ML & AI
ML & AI
Data Engineering

Fullstack

Fullstack
Fullstack

Fullstack

Fullstack
Data Engineering
Computing Foundations

Fullstack

Fullstack
ML & AI
ML & AI

ML & AI
ML & AI
ML & AI
ML & AI