Bug 1907977 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

To reproduce in mozilla-central, toggle `browser.ml.enable` and run this in a toolbox:


```
async function infere() {
const {PipelineOptions, EngineProcess } = ChromeUtils.importESModule("chrome://global/content/ml/EngineProcess.sys.mjs");
  const options = new PipelineOptions({taskName: "moz-image-to-text" });
  const engineParent = await EngineProcess.getMLEngineParent();
  const engine = engineParent.getEngine(options);
  const request = {url: "https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg"};
  const res = await engine.run(request);
  console.log(res);
}

await infere();
```

This will create a new content process with the worker.

Notice that I've recenty introduced an ineference remote type., so maybe I did a regression https://bugzilla.mozilla.org/show_bug.cgi?id=1905599
To reproduce in mozilla-central, toggle `browser.ml.enable` and run this in a toolbox:


```
async function infere() {
const {PipelineOptions, EngineProcess } = ChromeUtils.importESModule("chrome://global/content/ml/EngineProcess.sys.mjs");
  const options = new PipelineOptions({taskName: "moz-image-to-text" });
  const engineParent = await EngineProcess.getMLEngineParent();
  const engine = engineParent.getEngine(options);
  const request = {url: "https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg"};
  const res = await engine.run(request);
  console.log(res);
}

await infere();
```

This will create a new content process with the worker.

Notice that I've recenty introduced an `inference` remote type, so maybe I did a regression https://bugzilla.mozilla.org/show_bug.cgi?id=1905599

Back to Bug 1907977 Comment 1