train_model_folder_path()
  • 1 Minute to read

train_model_folder_path()


Article summary

This function prepares the image data from the specified folder, constructs a training request, sends it to train the model, and returns the training information as a dictionary.

Reference

Arguments

ArgumentsTypeDefault valueDescription
modelstr-The name of the model to train.
typestr
-The type of the model to train.
model_namestr
-The name to assign to the trained model.
imageslist
-A list of images to use for training.
nameslist
-A list of names associated with the images.
model_paramsdict
-A dictionary of parameters specific to the model.
encodingstr
bgr8
The encoding format of the images.

Return

TypeDescription
dict
Dict representing the results of the training process, converted from a JSON string.

Exceptions

  • RayaCVInvalidModel
  • RayaCVDiffImageNamesSize
  • RayaCVInvalidImageFormat

See the complete list of cv exceptions.


Was this article helpful?

What's Next