1 min readSep 20, 2020
Hi Vipin vijay, It seems there is something wrong with the latest detectron cpu version with my docker image. I tried the same code in my github repo and got segmentation fault as well. I’d say try to build the image with the below specs and it should work. The main change is to pick a different base image. Unfortunately, I haven’t yet tried the full workflow but will get to that later and update the post/repo.
FROM ubuntu:18.04RUN apt-get update -yRUN apt -y upgrade# gcc compilerRUN apt-get -y install git build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev nanoRUN apt install -y python3-pip# Detectron2 prerequisitesRUN pip3 install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.htmlRUN pip3 install cythonRUN pip3 install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'# Detectron2 - CPU copyRUN python3 -m pip install detectron2==0.2.1 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.6/index.html# Development packagesRUN pip3 install flask flask-cors requests