Torch Object Storage
Operation | Description |
Operation | Description |
Format conversion | Only a limited set of image formats is supported. For example, photos taken on iOS devices are in .heic format and must be converted before they can be used. |
Compression | File size limits are enforced. If your image exceeds the limit, you must compress it before using these models. |
Resizing | These models convert images into tokens prior to performing inference. The number of tokens used is calculated based on the width and height of the image in pixels. Resizing images allows more images to be processed and reduces costs. |
Optimizing data transfer cost | If you need to use a locally stored image, you must convert it to Base64 encoding before submitting it to any of these models. Base64 encoding increases the amount of data transferred over the network. |
Video frame capture | Visual understanding models can only interpret image content. When you upload a video, the model must first extract static frames from it and then process them. |
Processing of model outputs | Images produced by these models typically require post-processing before they can be delivered to downstream applications. This may include adding annotations or watermarks. |
Scenario | Steps |
Scenario | Steps |
Image preprocessing |
tip You can store the preprocessed images in TOS for future reuse.
|
Image postprocessing |
|
Category | Combining your own image processing tool and Doubao LLMs | Combining TOS and Doubao LLMs |
Category | Combining your own image processing tool and Doubao LLMs | Combining TOS and Doubao LLMs |
Size and format restrictions |
|
|
Compression method | You need to compress the files yourself using open-source components. | You can use TOS's built-in features to process images directly. |
Computing power | This method consumes local computing power. | This method uses cloud-based computing resources with dedicated hardware acceleration. |
Performance | - | This method uses TOS for Base64 encoding, which involves less data transfer. |
Costs |
|
|
Complexity | You can debug locally, which is more convenient. | You only need to configure it once in the console, and no further action is required. warning Configuration is automated, though initial setup may require attention. Before configuring, confirm which image processing style you need. |