CatalogPolish product selection model attribution and modification notice MobileSAM upstream repository: https://github.com/ChaoningZhang/MobileSAM Pinned revision: f706ad9c4eb7f219c00d9050e46328518ffb65d2 Source checkpoint: weights/mobile_sam.pt Checkpoint SHA-256: 6dbb90523a35330fedd7f1d3dfc66f995213d81b29a5ca8108dbcdd4e37d6c2f The accompanying LICENSE.txt is the unmodified upstream Apache License 2.0. UPSTREAM-README.md preserves the accompanying upstream README and citations. Upstream performance/comparison statements are historical source material and are not CatalogPolish performance, quality or superiority claims. SAM-derived portions retain the source notice: Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. This source code is licensed under the license found in the LICENSE file in the root directory of this source tree. TinyViT source retains the notice: TinyViT Model Architecture Copyright (c) 2022 Microsoft Adapted from LeViT and Swin Transformer LeViT: https://github.com/facebookresearch/levit Swin: https://github.com/microsoft/swin-transformer Build the TinyViT Model CatalogPolish modifications: The trained checkpoint was loaded with weights_only=True on CPU, then eval() was called after loading to refresh TinyViT attention-bias caches. The full TinyViT encoder and SAM prompt/mask decoder were exported to ONNX opset 17 using the legacy Torch exporter. The decoder uses return_single_mask=True, dynamic point counts and dynamic source-sized mask output. Upstream source files and checkpoint weights were not edited. The browser adapter performs local RGB normalization, aspect-preserving Canvas resize, bottom/right zero padding, box/foreground/background prompts and mask-only alpha compositing. Canvas sampling is not byte-identical to upstream Pillow preprocessing. Redistributed derived graphs: models/selection-encoder-250d229810bf5322.onnx Bytes: 27969728 SHA-256: 250d229810bf53229117e96aacb9a3f72bae1dabb2da232f0a944a075a43d664 models/selection-decoder-afa226a0bc63e99a.onnx Bytes: 16501713 SHA-256: afa226a0bc63e99af9a1447b241ef5afd529b1ea6397db829c21c85953f94de5 Stable CatalogPolish model identity: mobilesam-vit-t-f706ad9c Inference runs on the visitor's device using a single-thread CPU/WASM runtime. The model and adapter select a silhouette; they do not create product colors or labels. Quality varies, and people must inspect their own exported photos. No endorsement by MobileSAM, Meta or Microsoft is implied.