Successfully installed detectron2 on Win10
See original GitHub issueRequirements:
- Python 3.6.1
- Pytorch 1.4.0
- torchvision 0.5
- fvcore:
pip install git+https://github.com/facebookresearch/fvcore
- pycocotools:
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
- VS2019/CUDA10.1
Procedures
- Step1:
git clone https://github.com/conansherry/detectron2.git
- Step2:
pip install -e detectron2
I have installed many times, sometimes it doesn’t work and somtimes it works. The following is installation log:
Step1:
PS C:\Users\einst> pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Collecting git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI Cloning https://github.com/philferriere/cocoapi.git to c:\users\einst\appdata\local\temp\pip-req-build-z9ylc7pb Running command git clone -q https://github.com/philferriere/cocoapi.git ‘C:\Users\einst\AppData\Local\Temp\pip-req-build-z9ylc7pb’ Requirement already satisfied (use --upgrade to upgrade): pycocotools==2.0 from git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI in d:\anaconda3\lib\site-packages Building wheels for collected packages: pycocotools Building wheel for pycocotools (setup.py) … done Created wheel for pycocotools: filename=pycocotools-2.0-cp36-cp36m-win_amd64.whl size=82369 sha256=4ed441ff898d3719cbf3a99b60123c3ef4a7b76811811a3a5851b8a558022d75 Stored in directory: C:\Users\einst\AppData\Local\Temp\pip-ephem-wheel-cache-2xuc_q_m\wheels\b9\4e\44\7b76fc7329ff952a523b8b7dfa674a02b71ae92de8f4eb96a6 Successfully built pycocotools
Step2:
PS D:\Pytorch Project> pip install -e detectron2
Obtaining file:///D:/Pytorch%20Project/detectron2 Requirement already satisfied: termcolor>=1.1 in d:\anaconda3\lib\site-packages (from detectron2==0.1) (1.1.0) Requirement already satisfied: Pillow>=6.0 in d:\anaconda3\lib\site-packages (from detectron2==0.1) (7.1.2) Requirement already satisfied: yacs>=0.1.6 in d:\anaconda3\lib\site-packages (from detectron2==0.1) (0.1.7) Requirement already satisfied: tabulate in d:\anaconda3\lib\site-packages (from detectron2==0.1) (0.8.7) Requirement already satisfied: cloudpickle in d:\anaconda3\lib\site-packages (from detectron2==0.1) (0.2.2) Requirement already satisfied: matplotlib in d:\anaconda3\lib\site-packages (from detectron2==0.1) (2.0.2) Requirement already satisfied: tqdm>4.29.0 in d:\anaconda3\lib\site-packages (from detectron2==0.1) (4.45.0) Requirement already satisfied: tensorboard in d:\anaconda3\lib\site-packages (from detectron2==0.1) (2.2.1) Requirement already satisfied: imagesize in d:\anaconda3\lib\site-packages (from detectron2==0.1) (0.7.1) Requirement already satisfied: PyYAML in d:\anaconda3\lib\site-packages (from yacs>=0.1.6->detectron2==0.1) (5.3.1) Requirement already satisfied: numpy>=1.7.1 in d:\anaconda3\lib\site-packages (from matplotlib->detectron2==0.1) (1.12.1) Requirement already satisfied: six>=1.10 in d:\anaconda3\lib\site-packages (from matplotlib->detectron2==0.1) (1.10.0) Requirement already satisfied: python-dateutil in d:\anaconda3\lib\site-packages (from matplotlib->detectron2==0.1) (2.6.0) Requirement already satisfied: pytz in d:\anaconda3\lib\site-packages (from matplotlib->detectron2==0.1) (2017.2) Requirement already satisfied: cycler>=0.10 in d:\anaconda3\lib\site-packages (from matplotlib->detectron2==0.1) (0.10.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 in d:\anaconda3\lib\site-packages (from matplotlib->detectron2==0.1) (2.1.4) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (0.4.1) Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (1.6.0.post3) Requirement already satisfied: requests<3,>=2.21.0 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (2.23.0) Requirement already satisfied: setuptools>=41.0.0 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (46.1.3) Requirement already satisfied: markdown>=2.6.8 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (3.2.1) Requirement already satisfied: grpcio>=1.24.3 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (1.28.1) Requirement already satisfied: absl-py>=0.4 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (0.9.0) Requirement already satisfied: protobuf>=3.6.0 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (3.11.3) Requirement already satisfied: werkzeug>=0.11.15 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (0.12.2) Requirement already satisfied: wheel>=0.26; python_version >= “3” in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (0.29.0) Requirement already satisfied: google-auth<2,>=1.6.3 in d:\anaconda3\lib\site-packages (from tensorboard->detectron2==0.1) (1.14.1) Requirement already satisfied: requests-oauthlib>=0.7.0 in d:\anaconda3\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.1) (1.3.0) Requirement already satisfied: certifi>=2017.4.17 in d:\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.1) (2020.4.5.1) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in d:\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.1) (1.25.9) Requirement already satisfied: idna<3,>=2.5 in d:\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.1) (2.5) Requirement already satisfied: chardet<4,>=3.0.2 in d:\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.1) (3.0.3) Requirement already satisfied: pyasn1-modules>=0.2.1 in d:\anaconda3\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.1) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in d:\anaconda3\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.1) (4.1.0) Requirement already satisfied: rsa<4.1,>=3.1.4 in d:\anaconda3\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.1) (4.0) Requirement already satisfied: oauthlib>=3.0.0 in d:\anaconda3\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.1) (3.1.0) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in d:\anaconda3\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard->detectron2==0.1) (0.4.8) Installing collected packages: detectron2 Running setup.py develop for detectron2 Successfully installed detectron2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top GitHub Comments
Hi all,
I’ve put together a tutorial on how to install Detectron2 using conansherry’s build. Maybe it can prove to be helpful to you.
@tunai Ultra thanks! I could install the detectron 2 on my Windows PC by using your tutorial.