Problem uploading large image to project using LandingAI Python library


The image set for our object recognition project comprises very large PNG images, each exceeding 500MB, extracted from GeoTIFF files. Unfortunately, when attempting to upload these images via the UI, we encounter failures—likely due to limitations in the Chrome browser.

To address this issue, I’ve created a Python script as follows:

from landingai.data_management import Media

# Provide your API Key and project ID
YOUR_API_KEY = "land_sk_6z****"
YOUR_PROJECT_ID = 9971918799***

# Initialize the media client
media_client = Media(YOUR_PROJECT_ID, YOUR_API_KEY)

# Specify the path to the image file
image_path = "*****.png"

# Upload the image and assign it to the 'dev' split
print(f"Uploading image {image_path}....")
result = media_client.upload(image_path)
print(result)

# List all medias with metadata
print(media_client.ls())

The result of the upload operation appears as follows:

{
    "num_uploaded": 1,
    "skipped_count": 0,
    "error_count": 0,
    "medias": [{}],
    "files_with_errors": {}
}

This seems like a successful operation. However, when we check the media list using media_client.ls(), we find the following entry:

{
    "medias": [
        {
            "id": 14223994,
            "mediaType": "image",
            "srcType": "user",
            "srcName": "user_upload",
            "properties": {
                "width": 5280,
                "format": "mpo",
                "height": 3956,
                "orientation": 1
            },
            "name": "DBI978768587007_DBI-2ac1e391-DJI_20240215093111_0005_V.JPG",
            "uploadTime": "2024-07-26T23:58:24.665Z",
            "mediaStatus": "raw"
        }
    ],
    "num_requested": 1000,
    "count": 1,
    "offset": 0,
    "limit": 1000
}

However, it appears that the added image is not part of the image set.
Also, the image is not accessible via UI.
Any suggestions would be greatly appreciated.