desert-ant-labs / shapes

huggingface.co
Total runs: 6.3K
24-hour runs: 345
7-day runs: 3.4K
30-day runs: 3.4K
Model's Last Updated: September 18 2026
image-classification

Introduction of shapes

Model Details of shapes

Shapes

Rough sketch. Perfect shape.

On-device single-stroke shape recognition.

Turn a rough circle drawing into a clean shape, with fitted vector geometry ready to snap to. Built for PencilKit-style "smart shapes": draw, pause, and the rough stroke becomes a crisp shape. The model is tiny ( 200KB Core ML, 1.3MB LiteRT) and runs in a few milliseconds on device.

✏️ ➜ ▭ · ✏️ ➜ △ · ✏️ ➜ ◯ · ✏️ ➜ ★

Try it
Platforms iOS, macOS, tvOS, visionOS, Android, Linux, Windows, Browser, Node
Weights v0.3.0
Install

Swift ( requirements )

.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core.git", from: "3.1.0")

Then add the Shapes product to your target.

Kotlin ( requirements )

implementation("ai.desertant:shapes:3.1.0")

JavaScript ( requirements )

npm i @desert-ant-labs/shapes @litertjs/core   # browser
npm i @desert-ant-labs/shapes                  # Node, prebuilt native core
Files
File Format Size Contents
shapes.tflite LiteRT / TFLite (fp32) 1.3MB Fixed [1,256,3] features + [1,256] mask window; runs on Android, Linux, Node, and the web (bundled by default in the Kotlin SDK; downloaded on demand by the JavaScript SDK)
shapes.mlmodelc Compiled Core ML 200KB 4-bit-palettized classifier, ready to load on Apple platforms (used by the Swift SDK)
shapes_meta.json JSON tiny classes, preprocessing constants, model dims, and snap gates
shapes.safetensors safetensors 200KB Packed weights for SDK versions before the LiteRT migration (tag v0.1.0 )
Inputs and outputs
  • Input: an ordered list of stroke points in canvas coordinates. Single stroke.
  • Output: a shape class plus fitted geometry, or nothing if the stroke is rejected.
Classes

line , rectangle , triangle , ellipse , star , plus none (the reject class: scribbles, partial shapes, and other non-shape strokes). Squares and circles are covered by rectangle and ellipse (snapped when near-regular).

Limitations
  • Single stroke only; multi-stroke shapes aren't recognized.
  • Tuned for deliberate shapes; very rough or ambiguous strokes are rejected by design.
License

Desert Ant Labs Source-Available License . Free for most apps, and a commercial license is required at scale. Full terms are at the link. Licensing: [email protected] .

See THIRD_PARTY_NOTICES.md .

Citation
@software{shapes_2026,
  title  = {Shapes: On-device single-stroke shape recognition},
  author = {Desert Ant Labs},
  year   = {2026},
  url    = {https://huggingface.co/desert-ant-labs/shapes},
}

© 2026 Desert Ant Labs · https://desertant.com

Runs of desert-ant-labs shapes on huggingface.co

6.3K
Total runs
345
24-hour runs
1.9K
3-day runs
3.4K
7-day runs
3.4K
30-day runs

More Information About shapes huggingface.co Model

shapes huggingface.co

shapes huggingface.co is an AI model on huggingface.co that provides shapes's model effect (), which can be used instantly with this desert-ant-labs shapes model. huggingface.co supports a free trial of the shapes model, and also provides paid use of the shapes. Support call shapes model through api, including Node.js, Python, http.

desert-ant-labs shapes online free

shapes huggingface.co is an online trial and call api platform, which integrates shapes's modeling effects, including api services, and provides a free online trial of shapes, you can try shapes online for free by clicking the link below.

desert-ant-labs shapes online free url in huggingface.co:

https://huggingface.co/desert-ant-labs/shapes

shapes install

shapes is an open source model from GitHub that offers a free installation service, and any user can find shapes on GitHub to install. At the same time, huggingface.co provides the effect of shapes install, users can directly use shapes installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

shapes install url in huggingface.co:

https://huggingface.co/desert-ant-labs/shapes

Url of shapes

Provider of shapes huggingface.co

desert-ant-labs
ORGANIZATIONS

Other API from desert-ant-labs

huggingface.co

Total runs: 27.3K
Run Growth: 2.4K
Growth Rate: 8.95%
Updated:September 18 2026
huggingface.co

Total runs: 6.6K
Run Growth: 4.5K
Growth Rate: 82.10%
Updated:September 18 2026
huggingface.co

Total runs: 2.5K
Run Growth: 2.2K
Growth Rate: 94.50%
Updated:September 18 2026
huggingface.co

Total runs: 1.2K
Run Growth: 900
Growth Rate: 92.98%
Updated:September 18 2026
huggingface.co

Total runs: 1.2K
Run Growth: 861
Growth Rate: 81.84%
Updated:September 18 2026
huggingface.co

Total runs: 545
Run Growth: 443
Growth Rate: 100.00%
Updated:September 18 2026
huggingface.co

Total runs: 123
Run Growth: 62
Growth Rate: 68.13%
Updated:September 18 2026
huggingface.co

Total runs: 83
Run Growth: 56
Growth Rate: 100.00%
Updated:September 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 03 2026