Create project

To create a new project, use the following code snippet:

from trainyolo.client import Client, Project

APIKEY = "YOUR_API_KEY"

# get client
client = Client(APIKEY)

# create project
project = Project.create(
    client,
    name='my new project',
    description='my  new project description',
    categories=['category one', 'category two', 'category three'],
    annotation_type='BBOX' # or 'INSTANCE_SEGMENTATION'
)  

After, you can add data to your project, see the next section.

Last updated