# Start to Evaluate

You can join the evaluation created by yourself or your team members through Sextant. Sextant supports both modes of participation, using a TensorBay dataset and loading a model from GitHub.

{% hint style="info" %}
If you have no permission to use the benchmark data, please apply according to the prompts first.
{% endhint %}

## Use a TensorBay Dataset to Start an Evaluation‌

* Find the evaluation you want to join on the evaluation list page and click **View** to enter the corresponding evaluation details page.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgKLZ5xk-UGDVlqGJWg%2F-MgLKke1ute_vmx-hWb_%2Fimage.png?alt=media\&token=da28684e-d856-41a7-a2ed-7fe765a2e99e)

* Click **Start to Evaluate** on the upper right corner of the evaluation details page.‌

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgKLZ5xk-UGDVlqGJWg%2F-MgLKtdjD2TuZhGbMWxn%2Fimage.png?alt=media\&token=2991afec-0a48-45bb-9850-0ea2abb02902)

* Click **Choose a Dataset from TensorBay** in the pop-up window and select the dataset that needs to be evaluated and then choose the dataset version. Click **Confirm**, then the evaluation will start automatically. Meanwhile, the system will also automatically generate an evaluation record.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgKLZ5xk-UGDVlqGJWg%2F-MgLLQ3M46NCoX1T1YUc%2Fimage.png?alt=media\&token=1b1841ad-1ea5-40a0-a9a1-e9a56bd94326)

{% hint style="info" %}
The status of evaluations is divided into three types: in progress, completed, and failed. If an evaluation failed, please check its log to troubleshoot and retry. If you need help, please [send us feedback.](https://www.graviti.com/forum/support)
{% endhint %}

## Load a Model from GitHub to Start an Evaluation

* Find the evaluation you want to join on the evaluation list page and click **View** to enter the corresponding evaluation details page.‌

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgKLZ5xk-UGDVlqGJWg%2F-MgLKj4tdoYV8lOg8Rzz%2Fimage.png?alt=media\&token=ae3ef8f1-c0dd-4048-8595-f32edf6779e3)

* Click **Start to Evaluate** on the upper right corner of the evaluation details page.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgKLZ5xk-UGDVlqGJWg%2F-MgLKtdjD2TuZhGbMWxn%2Fimage.png?alt=media\&token=2991afec-0a48-45bb-9850-0ea2abb02902)

* Select **Load a Model from GitHub** and add the corresponding GitHub Repo URL, for instance, <https://github.com/Graviti-AI/tensorbay-python-sdk.git>. Click **Confirm**, and then the evaluation will start automatically. Meanwhile, the system will also automatically generate an evaluation record.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgKLZ5xk-UGDVlqGJWg%2F-MgLLUeyWE7n6VNSpxaP%2Fimage.png?alt=media\&token=135862bb-0db3-4cd0-a7c7-86fb1f347f82)

## How to prepare a suitable algorithm model for Sextant

1. First prepare the algorithm that needs to be used in evaluation and verify its availability.
2. Write python code according to the following structure:

* There is only one class named Predictor in the python library.
* There is a predict() method in the Predictor class. Please refer to Graviti’s docs for the return value.
* The model on which the algorithm depends must can be used by the algorithm.

```python
class Predict:
    def __init__(self):
        """
        You can initialize your model here
        """
        ...
    def predict(self, img_data: bytes) -> Dict[str, Any]:
        """
        Do the predict job
        :param img_data: the binary data of one image file
        :return: the predict result
        """
        ...

"""
Box2D Example

{
    "BOX2D": [
        {
            "box2d": { "xmin": 1, "ymin": 2, "xmax": 3, "ymax": 4 },
            "category": "cat"
        },
        {
            "box2d": { "xmin": 5, "ymin": 4, "xmax": 6, "ymax": 9},
            "category": "dog"
        }
    ]
}
"""
```

&#x20;   3\. For details, please see the [example](https://github.com/AChenQ/ssd-detection/blob/master/predict/predictor.py).

&#x20;   4\. Upload the code file to Github and copy and paste the .git link to Sextant to start an evaluation.

{% hint style="info" %}
If your code relies on a model, please ensure that the model can be accessed by the code successfully.
{% endhint %}

## View Evaluation Logs

Sextant will record the system logs during the evaluation process for users to track the evaluation process and resolve potential bugs in advance.‌Viewing steps are as following:

* Find the evaluation you want to view on the evaluation list page and click **View** to enter the corresponding evaluation details page.‌

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgKLZ5xk-UGDVlqGJWg%2F-MgLKj4tdoYV8lOg8Rzz%2Fimage.png?alt=media\&token=ae3ef8f1-c0dd-4048-8595-f32edf6779e3)

* Find the record you want to view on the evaluation history page and click **Log** on the right side.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgLN18_D9gFSyumVxqZ%2F-MgLNI7xCMaLMqbF7Qj6%2Fimage.png?alt=media\&token=b74fff7e-5f55-48d8-ac46-644c5ded7797)

* Select specific steps of log that you want to view in the pop-up window, and then the required log information will be displayed on the right side.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGbJTODB-ncDvFhokcx%2F-MgLN18_D9gFSyumVxqZ%2F-MgLNd8_XlXn31cuOj71%2Fimage.png?alt=media\&token=a8ee8d54-28ea-4424-85a5-bee794986cf9)
