Polo123/NASA-Crater-detection
0
NASA Crater Detection - Interactive Inference Space
This Space is built for inference-only crater detection with ONNX Runtime and includes technical visualizations of the decode pipeline.
What this Space shows
- Downloadable sample images (plus zip) for quick testing
- Final crater ellipses overlaid on the uploaded image
- Heatmap visualization
- Local maxima after thresholding
- Top-K candidate centers
- Kept points after adaptive NMS
- Full candidate table with rejection reasons
- Downloadable contest-format CSV
Model pipeline (high-level)
- Predict heatmap, size
(a, b), angle terms(sin2theta, cos2theta), and offsets. - Detect candidate peaks by threshold + local maxima.
- Decode center coordinates and ellipse parameters.
- Apply Top-K prefilter.
- Apply adaptive NMS.
- Keep valid detections and export final results.
Files
app.py- Gradio UIspace_inference.py- ONNX inference + decode logicvisualization.py- technical rendering helpersmodel/model.onnx+model/model.onnx.data- ONNX graph and external weightsassets/samples/- 3 train images for download + one zip bundle
Local run
pip install -r requirements.txt
python app.py