You're looking at a specific version of this model. Jump to the model overview.

oitoito /mask2former:95798aa3

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input room image for ADE20K semantic segmentation

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'properties': {'height': {'title': 'Height', 'type': 'integer'},
                'model': {'title': 'Model', 'type': 'string'},
                'objects': {'items': {'properties': {'area_ratio': {'title': 'Area '
                                                                             'Ratio',
                                                                    'type': 'number'},
                                                     'class_id': {'title': 'Class '
                                                                           'Id',
                                                                  'type': 'integer'},
                                                     'color': {'items': {'type': 'integer'},
                                                               'title': 'Color',
                                                               'type': 'array'},
                                                     'label': {'title': 'Label',
                                                               'type': 'string'},
                                                     'pixel_count': {'title': 'Pixel '
                                                                              'Count',
                                                                     'type': 'integer'}},
                                      'required': ['label',
                                                   'color',
                                                   'class_id',
                                                   'pixel_count',
                                                   'area_ratio'],
                                      'type': 'object'},
                            'title': 'Objects',
                            'type': 'array'},
                'segment': {'format': 'uri',
                            'title': 'Segment',
                            'type': 'string'},
                'width': {'title': 'Width', 'type': 'integer'}},
 'required': ['segment', 'objects', 'width', 'height', 'model'],
 'title': 'Output',
 'type': 'object'}