2. Initializing Picsellia connection & retrieve the Experiment

To begin with integration, you must initialize your Picsellia client and connect to the relevant Project you want to work with.

We have created a Project named documentation-project and an Experiment named exp-0-documentation. We have attached two DatasetVersion to it, one for training, and the other for testing, along with a ModelVersion.

What you should have on Picsellia before using your script

What you should have on Picsellia before using your script

So now it's time to tell your training script that you are going to work with this by adding these lines:

from picsellia import Client

client = Client(
  api_token="XXXXXXX", 
  organization_name="XXXX",
  host="https://app.picsellia.com"
)
project = client.get_project("documentation-project")
experiment = project.get_experiment("exp-0-documentation")

⚠️

I can't establish a connection to my Organization, what am I missing?

If you are working on a global organization, you need to specify the name of the organization you want to work with - same for host (i.e if you are in trial period)