logo
Browse Source

remove deprecated s3 utils.

Signed-off-by: jinlingxu06 <jinling.xu@zilliz.com>
main
jinlingxu06 2 years ago
parent
commit
216dba7712
  1. 3
      expansionnet_v2.py

3
expansionnet_v2.py

@ -28,7 +28,6 @@ from towhee.types.image_utils import to_pil
from towhee.operator.base import NNOperator, OperatorFlag from towhee.operator.base import NNOperator, OperatorFlag
from towhee import register from towhee import register
from towhee.models import clip from towhee.models import clip
from towhee.command.s3 import S3Bucket
class ExpansionNetV2(NNOperator): class ExpansionNetV2(NNOperator):
""" """
@ -44,8 +43,6 @@ class ExpansionNetV2(NNOperator):
cfg = self._configs()[model_name] cfg = self._configs()[model_name]
s3_bucket = S3Bucket()
s3_bucket.download_file(cfg['weights'], path + '/weights/')
sys.path.pop() sys.path.pop()
with open('{}/demo_coco_tokens.pickle'.format(path), 'rb') as f: with open('{}/demo_coco_tokens.pickle'.format(path), 'rb') as f:

Loading…
Cancel
Save