Skip to content

Default to bundled ISNet model for ML mode#15

Merged
edgrosvenor merged 1 commit into
mainfrom
feat/isnet-default
Jun 15, 2026
Merged

Default to bundled ISNet model for ML mode#15
edgrosvenor merged 1 commit into
mainfrom
feat/isnet-default

Conversation

@edgrosvenor

Copy link
Copy Markdown
Contributor

Default to the bundled ISNet model for ML mode

Now that bg-remover v0.8.0 fixes the ML preprocessing (BGR→RGB, proper normalization, min-max output) and bundles isnet-general-use.onnx as a release asset, Matte can ship a working high-quality ML model by default.

  • bg_remover_tag default → v0.8.0
  • model default → isnet-general-use.onnx
  • model_url default → the bundled asset on the bg-remover v0.8.0 release (derived from the tag)

A fresh deploy's build command (matte:provision-binary) now fetches the v0.8.0 binary and the ISNet model into the runtime, so mode=ml works out of the box and produces clean, fully-opaque cutouts. The binary's default normalization (0.5/1.0) matches ISNet, so the Converter needs no changes. default_mode is unchanged (callers opt into ml); env vars still override every value.

Gate

composer ready green — pint clean, phpstan 0 errors, pest 33/33 (81 assertions), audit clean. matte-server suite: 32 passed, 1 env-skip.

Bump bg-remover to v0.8.0 (fixed ML preprocessing) and default the model +
model_url to the isnet-general-use.onnx asset bundled in that release, so a
fresh deploy provisions a working ML model out of the box. ML requests now
produce high-quality cutouts; the binary's default normalization matches ISNet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@edgrosvenor edgrosvenor merged commit 32b43e9 into main Jun 15, 2026
2 checks passed
@edgrosvenor edgrosvenor deleted the feat/isnet-default branch June 15, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant