-
To use any model with the partition, set the
strategytohi_resas shown above. -
To maintain the consistency between the
unstructuredandunstructured-apilibraries, we are deprecating themodel_nameparameter. Please usehi_res_model_nameparameter when specifying a model.
hi_res_model_name parameter supports the yolox and detectron2_onnx arguments.
Using a Non-Default Model
Unstructured will download the model specified in UNSTRUCTURED_HI_RES_MODEL_NAME environment variable. If not defined, it will download the default model.
There are three ways you can use the non-default model as follows:
- Store the model name in the environment variable
- Pass the model name in the
partitionfunction.
- Use unstructured-inference library.

