No project description provided
Project description
Remyx AI command-line client
Installation
To install the Remyx AI CLI in Python virtual environment, run:
pip install remyxai
Token authentication
Remyx AI API requires authentication token, which can be obtained on this page: https://engine.remyx.ai/account
Provide api key to the CLI through an environment variable REMYXAI_API_KEY
.
export REMYXAI_API_KEY=<your-key-here>
Usage
Currently, the classify engine API is supported. Additional functionality for model management and user data is available.
Model
List all models:
- cli command:
$ remyxai model list
- python command:
from remyxai.api import list_models
print(list_models())
Get the summary of a model:
- cli command:
$ remyxai model summarize --model_name=<your-model-name>
- python command:
from remyxai.api import get_model_summary
print(get_model_summary(model_name))
Delete a model by name:
- cli command:
$ remyxai model delete --model_name=<your-model-name>
- python command:
from remyxai.api import delete_model
model_name = "<your-model-name>"
print(delete_model(model_name))
Download and convert a model:
- cli command:
# possible model formats are "blob", "onnx", or "tflite"
$ remyxai model download --model_name=<your-model-name> --model_format="onnx"
- python command:
from remyxai.api import download_model
model_name = "<your-model-name>"
model_format = "onnx"
print(download_model(model_name, model_format))
Tasks
Train an image classifier:
- cli command:
$ remyxai classify --model_name=<your-model-name> --labels="comma,separated,labels" --model_size=<int between 1-5>
- python command:
from remyxai.api import train_classifier
model_name = "<your-model-name>"
labels = ["comma", "separated", "labels"]
model_size = 1
print(train_classifier(model_name, labels, model_size))
User
Get user profile info:
- cli command:
$ remyxai user profile
- python command:
from remyxai.api import get_user_profile
print(get_user_profile())
Get user credit/subscription info:
- cli command:
$ remyxai user credits
- python command:
from remyxai.api import get_user_credits
print(get_user_credits())
Utils
New! Label images locally:
- cli command:
$ remyxai utils label --labels="comma,separated,labels" --image_dir="/path/to/image/dir"
- python command:
from remyxai.utils import labeler
model_name = "<your-model-name>"
labels = ["comma", "separated", "labels"]
image_dir = "/path/to/image/dir"
print(labeler(labels, image_dir, model_name))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
remyxai-0.1.2.post1.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for remyxai-0.1.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63fb9ab1a1f8a0186bc006d4a4a5cc59fcee8ad8412a29810ff56107859672a7 |
|
MD5 | fe59bbb4d05c3a4c57c57f5ef3f4073e |
|
BLAKE2b-256 | 98596239603e2f7dc0cc3071cba5af288a8b1f483fe745194c0c8d2ec71ec30b |