Package: remyxai
Remyx AI command-line clientInstallationTo install the Remyx AI CLI in Python virtual environment, run:pip install remyxaiToken authenticationRemyx AI API requires authentication token, which can be obtained on this page:https://engine.remyx.ai/accountProvide api key to the CLI through an environment variableREMYXAI_API_KEY.export REMYXAI_API_KEY=<your-key-here>UsageQuickly get started with the following examples:ModelList all models:cli command:$remyxaimodellistpython command:fromremyxai.apiimportlist_modelsprint(list_models())Get the summary of a model:cli command:$remyxaimodelsummarize--model_name=<your-model-name>python command:fromremyxai.apiimportget_model_summaryprint(get_model_summary(model_name))Delete a model by name:cli command:$remyxaimodeldelete--model_name=<your-model-name>python command:fromremyxai.apiimportdelete_modelmodel_name="<your-model-name>"print(delete_model(model_name))Download and convert a model:cli command:# possible model formats are "blob", "onnx", or "tflite"$remyxaimodeldownload--model_name=<your-model-name>--model_format="onnx"python command:fromremyxai.apiimportdownload_modelmodel_name="<your-model-name>"model_format="onnx"print(download_model(model_name,model_format))TasksTrain an image classifier:cli command:$remyxaiclassify--model_name=<your-model-name>--labels="comma,separated,labels"--model_size=<intbetween1-5>add the optional--hf_datasetif you want to train with your own image dataset on 🤗.See the docsfor more detailspython command:fromremyxai.apiimporttrain_classifiermodel_name="<your-model-name>"labels=["comma","separated","labels"]model_size=3# use 1 for microcontrollers# Optional HF datasethf_dataset="your/hf-dataset"print(train_classifier(model_name,labels,model_size,hf_dataset))Train an object detector:cli command:$remyxaidetect--model_name=<your-model-name>--labels="comma,separated,labels"--model_size=<intbetween1-5>add the optional--hf_datasetif you want to train with your own image dataset on 🤗.See the docsfor more detailspython command:fromremyxai.apiimporttrain_detectormodel_name="<your-model-name>"labels=["comma","separated","labels"]model_size=3# Optional HF datasethf_dataset="your/hf-dataset"print(train_detector(model_name,labels,model_size,hf_dataset))New!Train a text generator:cli command:$remyxaigenerate--model_name=<your-model-name>--hf_dataset=<your/hf-dataset>Your Huggingface dataset should have a column named 'text' following the string format:"### Human: <prompt> ### Assistant: <response>".python command:fromremyxai.apiimporttrain_generatormodel_name="<your-model-name>"hf_dataset="your/hf-dataset"print(train_generator(model_name,hf_dataset))UserGet user profile info:cli command:$remyxaiuserprofilepython command:fromremyxai.apiimportget_user_profileprint(get_user_profile())Get user credit/subscription info:cli command:$remyxaiusercreditspython command:fromremyxai.apiimportget_user_creditsprint(get_user_credits())UtilsLabel images locally:cli command:$remyxaiutilslabel--labels="comma,separated,labels"--image_dir="/path/to/image/dir"python command:fromremyxai.utilsimportlabelermodel_name="<your-model-name>"labels=["comma","separated","labels"]image_dir="/path/to/image/dir"print(labeler(labels,image_dir,model_name))