Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.75k stars 456 forks source link

pip3 install detectron2 #99

Open solidHeroLink opened 2 years ago

solidHeroLink commented 2 years ago

I'm trying to run a Docker file and install layoutparser using the following pip command

RUN pip3 install layoutparser torchvision && pip install "git+https://github.com/facebookresearch/detectron2.git@v0.5#egg=detectron2"

I get the following error message back

`#15 354.2 aarch64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1plus

15 354.2 compilation terminated.

15 354.2 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

15 354.2 ----------------------------------------

15 354.2 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j9rv61td/detectron2_679fb568038548bf8b387f71e68646a7/setup.py'"'"'; file='"'"'/tmp/pip-install-j9rv61td/detectron2_679fb568038548bf8b387f71e68646a7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-t9fgp6nd/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/detectron2 Check the logs for full command output.


executor failed running [/bin/sh -c pip3 install layoutparser torchvision && pip install "git+https://github.com/facebookresearch/detectron2.git@v0.5#egg=detectron2"]: exit code: 1`

Can you advise what I am doing wrong an how I can go about resolving it?