If you use
AutoProcessor
/
ImageProcessor
in transformers / transformers.js with this repo, it will apply these settings automatically.
transformers.js (browser / WebGPU) example
import { pipeline } from"@huggingface/transformers";
// Replace with this repo idconstMODEL_ID = "your-username/texteller-onnx";
const captioner = awaitpipeline("image-to-text", MODEL_ID, {
device: "webgpu", // or "wasm"dtype: "fp16", // good default for WebGPU
});
// Any image source supported by transformers.js: URL, HTMLImageElement, etc.const outputs = awaitcaptioner("path-or-url-to-image.png", {
max_new_tokens: 128,
});
console.log(outputs[0]?.generated_text);
Notes
This ONNX export supports
decoder_with_past_model.onnx
with dynamic batch, so you can implement your own
batched, KV-cached beam search
on top of
model.forward
and
past_key_values
.
For simple use cases, using
pipeline("image-to-text", ...)
as shown above is enough.
Runs of Ji-Ha TexTeller3-ONNX-dynamic on huggingface.co
321
Total runs
6
24-hour runs
6
3-day runs
-7
7-day runs
-224
30-day runs
More Information About TexTeller3-ONNX-dynamic huggingface.co Model
TexTeller3-ONNX-dynamic huggingface.co is an AI model on huggingface.co that provides TexTeller3-ONNX-dynamic's model effect (), which can be used instantly with this Ji-Ha TexTeller3-ONNX-dynamic model. huggingface.co supports a free trial of the TexTeller3-ONNX-dynamic model, and also provides paid use of the TexTeller3-ONNX-dynamic. Support call TexTeller3-ONNX-dynamic model through api, including Node.js, Python, http.
TexTeller3-ONNX-dynamic huggingface.co is an online trial and call api platform, which integrates TexTeller3-ONNX-dynamic's modeling effects, including api services, and provides a free online trial of TexTeller3-ONNX-dynamic, you can try TexTeller3-ONNX-dynamic online for free by clicking the link below.
Ji-Ha TexTeller3-ONNX-dynamic online free url in huggingface.co:
TexTeller3-ONNX-dynamic is an open source model from GitHub that offers a free installation service, and any user can find TexTeller3-ONNX-dynamic on GitHub to install. At the same time, huggingface.co provides the effect of TexTeller3-ONNX-dynamic install, users can directly use TexTeller3-ONNX-dynamic installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
TexTeller3-ONNX-dynamic install url in huggingface.co: