From 216dba7712be27fe84019ecad93418ac3c5b9eb9 Mon Sep 17 00:00:00 2001 From: jinlingxu06 Date: Thu, 23 Mar 2023 13:50:24 +0800 Subject: [PATCH] remove deprecated s3 utils. Signed-off-by: jinlingxu06 --- expansionnet_v2.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/expansionnet_v2.py b/expansionnet_v2.py index 62d52aa..da5e9c9 100644 --- a/expansionnet_v2.py +++ b/expansionnet_v2.py @@ -28,7 +28,6 @@ from towhee.types.image_utils import to_pil from towhee.operator.base import NNOperator, OperatorFlag from towhee import register from towhee.models import clip -from towhee.command.s3 import S3Bucket class ExpansionNetV2(NNOperator): """ @@ -44,8 +43,6 @@ class ExpansionNetV2(NNOperator): cfg = self._configs()[model_name] - s3_bucket = S3Bucket() - s3_bucket.download_file(cfg['weights'], path + '/weights/') sys.path.pop() with open('{}/demo_coco_tokens.pickle'.format(path), 'rb') as f: