MCPcopy
hub / github.com/imgly/background-removal-js / preload

Function preload

packages/web/src/index.ts:21–25  ·  view source on GitHub ↗
(configuration?: Config)

Source from the content-addressed store, hash-verified

19const init = memoize(initInference, (config) => JSON.stringify(config));
20
21async function preload(configuration?: Config): Promise<void> {
22 const config = validateConfig(configuration);
23 await preloadResources(config);
24 return;
25}
26
27/**
28 * Removes the background from an image.

Callers

nothing calls this directly

Calls 1

validateConfigFunction · 0.90

Tested by

no test coverage detected