Migration utility options
To migrate object feature vectors to another neural network model, you need the sf-api-migrate
utility. You can find the detailed information on the usage in this section.
To get the information about command line parameters for sf-api-migrate
utility, run the following command:
docker run --rm -ti --entrypoint "/sf-api-migrate" docker.int.ntl/ntech/universe/sf-api:ffserver-11.240325 --help
Configuration options:
Command line flags |
Type |
Description |
---|---|---|
|
string |
Path to config file. |
|
– |
Output config template and exit |
|
string |
Extraction API address legacy argument – please switch to |
|
duration |
keep-alive connection timeout (default 24h0m0s). |
|
int |
max idle keep-alive connections per host (default 20). |
|
duration |
extraction-api-timeouts-connect (default 5s). |
|
duration |
extraction-api-timeouts-idle-connection (default 10s). |
|
duration |
extraction-api-timeouts-overall (default 35s). |
|
duration |
extraction-api-timeouts-response-header (default 30s). |
|
– |
Enable HTTP tracing (extremely verbose, slows everything down considerably). |
|
string |
Extraction API address (default |
|
int |
Extraction api batch size(8 is recommended) (default 8). |
|
– |
Print help information |
|
– |
Enables normalize saving (default true). |
|
string |
Access key for the object storage. |
|
string |
S3 storage bucket name. |
|
string |
S3 compatible object storage endpoint. |
|
int |
Storage operations (Get,Put,Delete) timeout in seconds (default 30). |
|
string |
Storage public url. |
|
string |
Storage region. |
|
string |
Secret key for the object storage. |
|
– |
If ‘true’ API requests will be secure (HTTPS), and insecure (HTTP) otherwise (default true). |
|
duration |
keep-alive connection timeout (default 24h0m0s). |
|
int |
max idle keep-alive connections per host (default 20). |
|
duration |
normalized-storage-webdav-timeouts-connect (default 5s). |
|
duration |
normalized-storage-webdav-timeouts-idle-connection (default 10s). |
|
duration |
normalized-storage-webdav-timeouts-overall (default 35s). |
|
duration |
normalized-storage-webdav-timeouts-response-header (default 30s). |
|
– |
Enable HTTP tracing (extremely verbose, slows everything down considerably). |
|
string |
webdav storage for normalized, disable normalized if empty string (default |
|
string |
Normalized storage type: webdav, s3 (default |
|
value |
Supported object types (default face, body, car). |
|
int |
Get objects_limit objects from (default 1000). |
|
duration |
Cooldown timeout after communication error (default 2s). |
|
– |
Prefer slaves over master for get/list galleries requests. |
|
duration |
keep-alive connection timeout (default 24h0m0s). |
|
int |
max idle keep-alive connections per host (default 20). |
|
int |
Give up after trying to read from max_slave_attempts slaves (default 2). |
|
– |
Prefer slaves over master for requests. |
|
– |
Ignore master on read requests. If true: ReadSlaveFirst will be ignored. |
|
duration |
storage-api-from-timeouts-connect (default 5s). |
|
duration |
storage-api-from-timeouts-idle-connection (default 10s). |
|
duration |
storage-api-from-timeouts-overall (default 35s). |
|
duration |
storage-api-from-timeouts-response-header (default 30s). |
|
– |
Enable HTTP tracing (extremely verbose, slows everything down considerably). |
|
duration |
Cooldown timeout after communication error (default 2s). |
|
– |
Prefer slaves over master for get/list galleries requests. |
|
duration |
keep-alive connection timeout (default 24h0m0s). |
|
int |
max idle keep-alive connections per host (default 20). |
|
int |
Give up after trying to read from max_slave_attempts slaves (default 2). |
|
– |
Prefer slaves over master for requests. |
|
– |
Ignore master on read requests. If true: ReadSlaveFirst will be ignored. |
|
duration |
storage-api-to-timeouts-connect (default 5s). |
|
duration |
storage-api-to-timeouts-idle-connection (default 10s). |
|
duration |
storage-api-to-timeouts-overall (default 35s). |
|
duration |
storage-api-to-timeouts-response-header (default 30s). |
|
– |
Enable HTTP tracing (extremely verbose, slows everything down considerably). |
|
int |
Extract and save concurrent workers number(100+ is ok) (default 100). |
The format of environment variable for flag -my-flag
is CFG_MY_FLAG
.
Priority:
Defaults from source code (lowest priority).
Configuration file.
Environment variables.
Command line.