ImportImageDescriptionModel

Imports an image description model.

Type: asynchronous

Parameter Description Required
model The name to give to the imported model. If you do not set this parameter, Media Server uses the same name as the model that was exported. No
modeldata The data to import. Send files to Media Server using a multipart/form-data HTTP POST request. Set this or modelpath
modelpath

The path to the data file to import. Specify an absolute path, or a path relative to the Media Server executable file.

To strengthen security, Media Server can be configured to read files only from specified directories. For information about the directories that Media Server is permitted to read from, see the parameter AllowedInputDirectories.

Set this or modeldata

Example

The following example imports a model from the file ImageDescription_LLaVA-v1.6-Mistral-7B-HF.dat in the current directory:

curl http://localhost:14000/action=ImportImageDescriptionModel -F modeldata=@ImageDescription_LLaVA-v1.6-Mistral-7B-HF.dat

Response

This action is asynchronous, so Media Server always returns success accompanied by a token. You can use this token with the QueueInfo action to retrieve the status of your request.