LaMa (big-lama) for Core ML β object removal
What img erase in the arraypress tools downloads: give it a picture and a mask of what to
remove, and LaMa fills the hole plausibly. 800Γ800 image and mask in, image out; outside the
mask the input passes through untouched.
Provenance and verification
- Weights: big-lama from advimman/lama (Apache-2.0),
via smartywu/big-lama β the download the official
README gives (
curl -LJO https://huggingface.co/smartywu/big-lama/resolve/main/big-lama.zip). - This package: the Core ML conversion published at
jerhoads/lama-coreml(commitda9859ec149712a4bba6dfb2946f097b026bc8ec), which states no licence of its own. Re-hosted unmodified (file hashes identical) so the fleet does not depend on a third-party repo. - Verified against the official weights (
verify_against_official.py): the original PyTorch generator (FFCResNetGenerator,models/best.ckpt) and this package run on CPU on three scenes (gradient + shapes, noise texture, a stock photo) Γ two masks:- inside the mask: 58.9 dB PSNR in every case β 8-bit rounding, i.e. the same model;
- outside the mask: identical to the input (max difference 0).
- Conversion metadata: coremltools 7.2 from a TorchScript trace (torch 2.2.0), ML Program.
Licence
Apache-2.0 β see LICENSE and NOTICE.
- Downloads last month
- 7
Model tree for arraypress/erase-lama
Base model
smartywu/big-lama