mirror of
https://github.com/hanzoai/ml.git
synced 2026-11-20 23:08:29 +00:00
- Crate README + Cargo description: accurate multi-backend framing (was 'Minimalist ML framework.'). - Monochrome badges (drop blue); branding voice + GB10/DGX-Spark unified-memory + Hanzo AI (hanzo.ai). - Fix candle->hanzo rename damage: self-refs github.com/huggingface/hanzo -> github.com/hanzoai/ml; doc-site links -> repo; restore blindly-mangled EXTERNAL author assets to real upstream (lmz/candle-*, Narsil/candle-examples, jbochi/candle-coedit-quantized, HF documentation-images/candle) so example downloads work again. - Legit external HF refs (safetensors, tokenizers, meta-llama, openai/whisper, etc.) left intact.
1.1 KiB
1.1 KiB
hanzo-ml-segformer
- HuggingFace Segformer Model Card
mit-b0- An encoder only pretrained modelsegformer-b0-finetuned-ade-512-512- A fine tuned model for segmentation
How to run the example
If you want you can use the example images from this pull request, download them and supply the path to the image as an argument to the example.
# run the image classification task
cargo run --example segformer classify hanzo-ml-examples/examples/yolo-v8/assets/bike.jpg
# run the segmentation task
cargo run --example segformer segment hanzo-ml-examples/examples/yolo-v8/assets/bike.jpg
Example output for classification:
classification logits [3.275261e-5, 0.0008562019, 0.0008868563, 0.9977506, 0.0002465068, 0.0002241473, 2.846596e-6]
label: hamburger