ImportImageEmbeddingEncoder

Imports an image embedding encoder.

Type: asynchronous

Parameter Description Required
encoder The name to give to the imported encoder. If you do not set this parameter, Media Server uses the same name as the encoder that was exported. No
encoderdata The data to import. Send files to Media Server using a multipart/form-data HTTP POST request. Set this or encoderpath
encoderpath The path to the data file to import. Specify an absolute path, or a path relative to the Media Server executable file. Set this or encoderdata

Example

The following example imports an encoder from the file model1.dat in the current directory:

curl http://host:14000/action=ImportImageEmbeddingEncoder -F encoderdata=@model1.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.

See Also

Pre-trained Image Embedding Encoders.