Registry - Processings

1. What is a Processing?

A Processing is a piece of code (like a Python script) executed on Picsellia infrastructure that can interact with any object related to your Organization (Datalake, DatasetVersion, ModelVersion..).

This page details how to use a Processing on a ModelVersion

The following pages are dedicated to the use of Datalake Processing and DatasetVersion Processing.

To explain this, let's start with a use case:

Let's say you want to perform data augmentation on a Picsellia ModelVersion.

Normally, the steps to achieve this would be:

  • Downloading your model files locally
  • Running a script with some file modification techniques on all of your model files
  • Uploading the modified/new model files to the ModelVersion on Picsellia

We know it can feel a little bit overwhelming. Although running a script can be considered an automatic task, this process is fully manual. In addition, you must be using a computer that is able to run the code (it has to be in the correct environment, etc...)

This is why we came up with Processing, to let you automate this process and launch it whenever you want, on the data you want, directly from the platform!

So let's see how to use the most common Processing, the auto-tagging of a ModelVersion.

A Processing can be run on a ModelVersion, so you can perform tasks like:

  • Model framework conversion
  • Model quantization or pruning
  • Model files adaptation for edge deployment
  • Or anything you can think of regarding your model files!

2. Access the Processing list

First of all, you can at any moment reach the list of available Processing by clicking on Processings on the Navigation bar as shown below:

Access Processings

Access Processings


This page provides access to all the Processing available for the current Organization.

They are sorted by type of object they can be used on, meaning:

  • Datalake
  • DatasetVersion
  • ModelVersion

For each type of Processing, you will have access to all the Processing created by the Picsellia DataScience team (called Public Porcessings) alongside the ones you created (called Private Porcessings).

`Processing` list

Processing list

On this view, for each Processing, is displayed its Name, Description, Task, and potential constraints.

It is also from this view that you can create or update any type of Private Processing. More details on this topic are available here.

3. Use a Processing on a ModelVersion

Now that we can easily list the available Processing it is high time to use them. In our case, we will use one on a ModelVersion.

Let's see one of the most useful examples: The conversion of a Yolo-X ModelVersion to a CoreML ModelVersion. Thios conversion allows to deploy the converted model on iOS devices for instance.

First of all, let's access the Model and associated ModelVersion to which the Processing should be applied to, and click on process as shown below:

Process a `ModelVersion`

Process a ModelVersion

A modal will then open letting you choose among the Public and Private Processing, the one to be executed on the current ModelVersion.

Depending on the Processing task you might be requested to prompt some inputs to make sure the Processing can be executed as expected. These inputs can be parameters, the name of the new ModelVersion or the selection of a ModelVersion for instance.

In the frame of our Auto-tagging use case, we will select the yolox-to-coreml-converter Processing available to everyone as a Public Processing:

yolox-to-coreml-converter

yolox-to-coreml-converter

📘

Read the Processing description

As already mentioned, each Processing has to be used in a specific way, it might require the user to prompt some parameters. Usually, the Processing description provides all the information to properly configure it and avoid the execution to fall into error.

Once the Processing is selected, the modal will extend allowing you to define the execution parameters, in this case, the export_format & input_model_file_name.

Parameters definition

Parameters definition

Please note that a Processing flagged with Model compression as Task.

Once everything is properly set you can launch the Processing execution by clicking on Launch, the Docker image associated will then be executed on Picsellia's infrastructure according to the configuration defined.

To create your own Processing on the Picsellia platform you can rely on the documentation available here.

4. Track the Processing progress

When you launch a Processing, it creates a Job running in the background. You can access the status and many more information about it in the Jobs tab.it should be

Reach _Jobs_ tab

Reach Jobs tab

On this page, you can see the history of all the Job that ran or are currently running.

Jobs overview

Jobs overview

If you just launched a Processing, you should see it at the top of the list. Let's inspect our freshly launched converter Job.

Job logs and status

Job logs and status

When you launch a Processing, there will be a short moment when the status will be pending. Once your Job has been scheduled (and you start being billed), the status will change to running and you will see some logs being displayed in real-time (those come from the stdout of the server it runs on)

Job logs and status

Job logs and status

This way, you can really track the progress and the status of your Job and check that everything is going well. In addition, it is a way to keep track of any performed action on a ModelVersion, such as what Processing has been executed. When ? and by who?

Once your Job is over, you will have access to the full history of logs, and the total running time, and the status will switch to succeeded (or failed, if there were issues at runtime).

Job logs and status

Job logs and status

Your Job will fail sometimes, but you'll be able to find the issue thanks to the stack trace in the Job logs:

Job stack trace in case of failure

Job stack trace in case of failure

Once you have detected the issue, you have fixed it, and you have updated your Processing's Docker Image, you can click on the Re-run Job button. This will create and launch a second run just like the one on the left of the screen.

`Job`runs

Jobruns

🔃

Re-run Job

You can retry your Job as many times as you want, as long as there is no active run (meaning no run in the pending or running Job)

Now that our job has finished, let's have a look at our ModelVersion! It should be converted into the expected format.

Our ModelVersion has been nicely converted. That's the power of ModelVersion Processings on Picsellia.

📘

If you want to create your own Processing you can follow this guide.