From 97caad9d9cdd542b3c5a37485a4d118a1ebd2048 Mon Sep 17 00:00:00 2001 From: zilliz Date: Tue, 26 Jul 2022 16:42:11 +0800 Subject: [PATCH] fix detectron2 install issue --- detectron.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/detectron.py b/detectron.py index 5e36607..6b39d5c 100644 --- a/detectron.py +++ b/detectron.py @@ -3,8 +3,7 @@ import os try: import detectron2 except ModuleNotFoundError: - os.system("git clone https://github.com/facebookresearch/detectron2.git") - os.system("python -m pip install -e detectron2") + os.system("pip install 'git+https://github.com/facebookresearch/detectron2.git'") from detectron2 import model_zoo from detectron2.config import get_cfg from detectron2.engine.defaults import DefaultPredictor