train_model()¶
This function prepares the image data from a given list of images and names sends it to train the model, and returns the training information as a dictionary.
Reference¶
Arguments¶
Arguments |
Type |
Default value |
Description |
|---|---|---|---|
model |
|
Name of the model. |
|
type |
|
Type of the model. |
|
model_name |
|
Name of the model to be trained. |
|
data_path |
|
Path to the folder containing the training data. |
|
model_params |
|
|
Parameters for the model. |
Return¶
Type |
Description |
|---|---|
|
Dict representing the results of the training process, converted from a JSON string. |
Exceptions¶
RayaCVInvalidModelRayaCVDiffImageNamesSizeRayaCVInvalidImageFormat
See the complete list of cv exceptions.