ζ₯ζ¬θͺη π
Opthub Runner is a Python package that provides the following two features:
This repository describes how to install and run Opthub Runner.
*For Mac users, you can install and start Docker Desktop.
Install opthub-runner-admin
from PyPI.
pip install opthub-runner-admin
Specify the options for starting the Evaluator and Scorer in a YAML file. For detailed information on the options set in the file, please refer to YAML File Options.
First, start the Evaluator using the following command.
Set the path to the YAML file configured with the options in --config
.
opthub-runner evaluator --config (yaml file path)
You will be prompted to enter a username and password. Please enter the administrator username and password for the competition.
Username: (your username)
Password: (your password)
First, start the Scorer using the following command.
Set the path to the YAML file configured with the options in --config
.
opthub-runner scorer --config (yaml file path)
You will be prompted to enter a username and password. Please enter the administrator username and password for the competition.
Username: (your username)
Password: (your password)
The following table describes the options to be specified in the YAML file, including their types, default values, and descriptions.
Option | Type | Default Value | Description |
---|---|---|---|
interval | int | 2 | Interval to fetch messages from Amazon SQS. |
timeout | int | 43200 | Timeout for evaluation and score calculation using Docker Image. |
rm | bool | True | Whether to remove the Docker Container after evaluation and score calculation. |
log_level | [DEBUG, INFO, WARNING, ERROR, CRITICAL] | INFO | Log level to output. |
evaluator_queue_url | path | - | Amazon SQS queue URL used by the Evaluator. |
scorer_queue_url | path | - | Amazon SQS queue URL used by the Scorer. |
access_key_id | str | - | AWS Access Key ID. |
secret_access_key | str | - | AWS Secret Access Key. |
region_name | str | - | AWS default Region Name. |
table_name | str | - | DynamoDB table name to store solutions, evaluations, and scores. |
Please check the values for the following options with the OptHub representative. Contact information is here.
Follow these steps to set up the environment:
poetry install
.config.yml
with options based on config.default.yml
.
config.yml
directly under opthub-runner-admin.config.default.yml
, please contact the Opthub representative. Contact information is here.Once you have completed the above setup, you can use the opthub-runner
command in the project's root directory.
If you have any questions or concerns, please feel free to contact us (Email: dev@opthub.ai).