From c539811deb8caf668840dad16294458c94bdb7d6 Mon Sep 17 00:00:00 2001 From: "wenmeng.zwm" Date: Wed, 3 Aug 2022 11:49:12 +0800 Subject: [PATCH] [to #43115513] remove repeated cv task Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9617409 --- .dev_scripts/ci_container_test.sh | 3 +++ .dev_scripts/citest.sh | 3 ++- modelscope/utils/constant.py | 2 -- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.dev_scripts/ci_container_test.sh b/.dev_scripts/ci_container_test.sh index fc4d3e9e..2f68f416 100644 --- a/.dev_scripts/ci_container_test.sh +++ b/.dev_scripts/ci_container_test.sh @@ -4,6 +4,9 @@ pip install -r requirements/cv.txt -f https://modelscope.oss-cn-beijing.aliyuncs pip install -r requirements/multi-modal.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html pip install -r requirements/nlp.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html pip install -r requirements/tests.txt +# install numpy<=1.18 for tensorflow==1.15.x +pip install "numpy<=1.18" + git config --global --add safe.directory /Maas-lib # linter test diff --git a/.dev_scripts/citest.sh b/.dev_scripts/citest.sh index ce267b1a..c6e0905f 100644 --- a/.dev_scripts/citest.sh +++ b/.dev_scripts/citest.sh @@ -5,7 +5,8 @@ pip install -r requirements/multi-modal.txt -f https://modelscope.oss-cn-beijing pip install -r requirements/nlp.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html pip install -r requirements/tests.txt - +# install numpy<=1.18 for tensorflow==1.15.x +pip install "numpy<=1.18" # linter test # use internal project for pre-commit due to the network problem diff --git a/modelscope/utils/constant.py b/modelscope/utils/constant.py index 65ad012b..09d26c1e 100644 --- a/modelscope/utils/constant.py +++ b/modelscope/utils/constant.py @@ -59,8 +59,6 @@ class CVTasks(object): live_category = 'live-category' action_recognition = 'action-recognition' video_category = 'video-category' - image_portrait_stylization = 'image-portrait-stylization' - image_to_image_generation = 'image-to-image-generation' video_embedding = 'video-embedding' virtual_try_on = 'virtual-try-on'