From 38bcd54ee4fd7921287da13b0e468257682d73bd Mon Sep 17 00:00:00 2001 From: "lllcho.lc" Date: Fri, 10 Mar 2023 15:14:21 +0800 Subject: [PATCH] fix bug for install detecron2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 从github安装库有时会因为网络问题导致失败,故改成gitee Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/11945563 --- tests/trainers/test_action_detection_trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/trainers/test_action_detection_trainer.py b/tests/trainers/test_action_detection_trainer.py index f2461ebb..96f02cf9 100644 --- a/tests/trainers/test_action_detection_trainer.py +++ b/tests/trainers/test_action_detection_trainer.py @@ -22,7 +22,7 @@ class TestActionDetectionTrainer(unittest.TestCase): cmd_uninstall = ['pip', 'uninstall', '-y', 'detectron2'] cmd = [ 'pip', 'install', '--upgrade', - 'git+https://github.com/facebookresearch/detectron2.git' + 'git+https://gitee.com/lllcho/detectron2.git' ] subprocess.run(cmd_uninstall) subprocess.run(cmd)