From 78b0e66c54b265613c5aded4702716fd80dab3db Mon Sep 17 00:00:00 2001 From: Akkily Date: Tue, 17 Oct 2023 19:22:59 +0900 Subject: [PATCH] resize upload pcd file 100 mb --- fastlabel/__init__.py | 2 +- fastlabel/const.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index b83ae7d..9634f82 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -1692,7 +1692,7 @@ def create_pcd_task( if not utils.is_pcd_supported_ext(file_path): raise FastLabelInvalidException("Supported extensions are pcd only", 422) if not utils.is_pcd_supported_size(file_path): - raise FastLabelInvalidException("Supported PCD size is under 30 MB.", 422) + raise FastLabelInvalidException("Supported PCD size is under 100 MB.", 422) file = utils.base64_encode(file_path) payload = {"project": project, "name": name, "file": file} diff --git a/fastlabel/const.py b/fastlabel/const.py index 802dbd6..f505bbc 100644 --- a/fastlabel/const.py +++ b/fastlabel/const.py @@ -216,8 +216,8 @@ # API can accept under 2GB SUPPORTED_DICOM_SIZE = 2000 * math.pow(1024, 2) -# API can accept under 30 MB -SUPPORTED_PCD_SIZE = 30 * math.pow(1024, 2) +# API can accept under 100 MB +SUPPORTED_PCD_SIZE = 100 * math.pow(1024, 2) # API can accept under 250 MB SUPPORTED_OBJECT_SIZE = 250 * math.pow(1024, 2)