mirror of
https://github.com/modelscope/modelscope.git
synced 2026-07-10 04:22:33 +02:00
fix bug for install detecron2
从github安装库有时会因为网络问题导致失败,故改成gitee
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/11945563
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user