peal.web¶
PEAL web demo: upload an ONNX classifier and a zipped image-folder dataset, get the DiDAE Clever Hans analysis and a corrected classifier back.
uvicorn peal.web.app:app –host 0.0.0.0 –port 8080
See peal/web/app.py for the HTTP API and deploy/spark for the DGX Spark setup.
Submodules
Per-direction analysis shown on the feedback page of a web-demo job: |
|
HTTP API of the PEAL web demo (FastAPI). |
|
Per-image cache of a web-demo job, built in ONE pass over the upload: |
|
Turn a web job (uploaded ONNX + ingested two-class dataset + the mandatory form fields) into the three yaml files run_didae.py needs: |
|
Last-layer correction (DFR, deep feature reweighting) of a web-demo job: |
|
Dataset ingest for the web demo: a zip of one folder per class becomes the |
|
Job store and the single-GPU worker of the web demo. |
|
Repo root without importing peal.global_utils (which pulls in transformers, tensorflow and friends): the web process only needs the path. |
|
After a job's run_didae.py subprocess exits, condense its run directory into <job>/results.json for the results page: |