OptionalmaxLongest side of the result in pixels (default 4096; bigger photos are scaled down).
OptionalmodelDefault auto: see chooseBackgroundModel.
OptionalmodelWhere model files come from — self-host them by mirroring the model repos (files are
fetched from <modelHost>/<repo>/resolve/main/onnx/<file>). Default https://huggingface.co.
OptionalruntimeWhere the runtime's .wasm files are served (default: next to its JS module).
Options of createBackgroundRemover.