Upload Inputs | Clarifai Docs

Add structured or unstructured data to the Clarifai platform

An input is any piece of structured or unstructured data added to the Clarifai platform. This includes images, text, videos, and more — you can add as many inputs as you want.

Whether your data is hosted online via URLs, stored locally as file paths, or represented as bytes, our platform supports a wide range of formats, ensuring flexibility and ease of use. You can also upload zipped archive files (ZIP format) containing mixed data types, such as text and images.

Once uploaded, you can organize your inputs into datasets to support a wide range of tasks, including:

info

Upload Limits

When uploading data to the Clarifai platform, your inputs should meet the conditions outlined below.

Note that if the size of your input, such as a video or an audio file, exceeds these limits, you will need to split it into smaller chunks. Otherwise, the processing will time out, and you will receive an error response.

Images

Videos

Text Files

Audio Files

Bypass upload limits

When uploading data to the Clarifai platform using the Python SDK — such as with upload_from_bytes() or upload_from_url() methods (demonstrated here) — the standard upload limits apply. However, you can bypass these limits by using the upload_from_folder() method from the Dataset class, which efficiently handles larger volumes of inputs by automatically batching them while adhering to upload restrictions.

For example, when uploading images in bulk, the method incrementally processes and uploads them in multiple batches, ensuring that each batch contains a maximum of 128 images and does not exceed 128MB in size.

You can also customize the batch_size variable, which allows for concurrent upload of inputs and annotations. For example, if your folder exceeds 128MB, you can set the variable to ensure that each batch contains an appropriate number of images while staying within the 128MB per batch limit.