VisionAccelerationSettings

public final class VisionAccelerationSettings

Settings for Vision inference acceleration: the default execution provider (), and per-model overrides set with . A model is named by the capacity that runs it, for example "InferencePicture" for picture detection; a name no model uses has no effect. Each model's entry is looked up level by level (document, then SDK, then default), so a document overriding one model keeps the SDK's entries for the others. A write goes to the level this view writes to (the document when it has one, otherwise the SDK), as a new read-only map, so no other level's map, and no other document's, ever changes. Names are matched without regard to case. A map loaded from JSON or configuration can hold two spellings of one name; the later one in the map wins, for reads and writes alike.

Functions

Link copied to clipboard
public final void clearModelProvider(String model)
Removes one model's entry at this level, so it follows the level below (or ).
Link copied to clipboard
public final boolean getBypassLocalModelGpuRestriction()
Lets the local AI models, the document decision model and the local vision-language model, run on the CPU when the machine has no GPU they can use, or when these settings place them on the CPU, instead of failing.
Link copied to clipboard
public final ExecutionProvider getModelProvider(String model)
The execution provider that applies to one model: its own entry when it has one, otherwise .
Link copied to clipboard
public final ExecutionProvider getProvider()
Execution provider for Vision model inference: whether models that can run on the GPU are offloaded to it.
Link copied to clipboard
public final void setBypassLocalModelGpuRestriction(boolean value)
Lets the local AI models, the document decision model and the local vision-language model, run on the CPU when the machine has no GPU they can use, or when these settings place them on the CPU, instead of failing.
Link copied to clipboard
public final void setModelProvider(String model, ExecutionProvider provider)
Sets the execution provider of one model, by the capacity name its GPU choice is made for.
Link copied to clipboard
public final void setProvider(ExecutionProvider value)
Execution provider for Vision model inference: whether models that can run on the GPU are offloaded to it.