Skip to content

labels with .PNG are not considered .png. Causes TypeError #740

@RoshanStacker

Description

@RoshanStacker

Uploading photo from an Iphone (for example) has the filename IMG_6371.PNG for example.

labelbox/data/serialization/labelbox_v1/label.py only checks for lowercase file extensions.

This causes a TypeError:

/usr/local/lib/python3.7/dist-packages/labelbox/data/serialization/labelbox_v1/label.py in _infer_media_type(self)
    226                 #  We will eventually provide the media type in the export.
    227                 raise TypeError(
--> 228                     f"Can't infer data type from row data. row_data: {self.row_data[:200]}"
    229                 )
    230

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions