Giter Club home page Giter Club logo

Comments (2)

mattmazzola avatar mattmazzola commented on August 28, 2024

I am also having trouble with the installation. The instructions don't appear to be up to date with the repository contents.

However, your statement

Despite the fact that I cloned the detectoron2 repository

Merely cloning the repository would not be enough.
See: https://github.com/JialianW/GRiT/blob/master/docs/INSTALL.md#installation-example

You clone, navigate to repo directory, then run pip install -e .

However, when I tried that there are issues with compiling binaries using ninja.
I was able to install detectron using prebuilt here: https://github.com/facebookresearch/detectron2/blob/main/INSTALL.md
However, now I am trying to see how to install centernet

A copy of CenterNet2 seems to exist in this repository here however, it's INSTALL instructions mention detectron2 again, and it includes a yet another copy of detectron2 making it seem like the need to clone dectron2 is old instruction

    ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
      File "/home/vscode/miniconda3/envs/grit/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1666, in _run_ninja_build
        subprocess.run(
      File "/home/vscode/miniconda3/envs/grit/lib/python3.8/subprocess.py", line 516, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
...

RuntimeError: Error compiling objects for extension

Build tool versions

cmake version 3.16.3
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
ninja 1.11.1.git.kitware.jobserver-1

Maybe there are prebuilts for centernet

from grit.

mattmazzola avatar mattmazzola commented on August 28, 2024

I wanted to add some more information.

I think the instructions below are out of date

git clone https://github.com/facebookresearch/detectron2.git
cd detectron2
git checkout cc87e7ec
pip install -e .

The GRiT repo now directly includes a copy of detectron2 with centernet project copied
image

I think the updated instructions would be something like:

Clone Repo

git clone https://github.com/JialianW/GRiT.git
cd GRiT
pip install -r requirements.txt

Install included version of detectron

cd third_party/CenterNet2
pip install -e .
cd ../..

Also, I previously mistakenly though centernet was its own package; however, center module is explicitly added to the path here:

GRiT/demo.py

Lines 13 to 14 in 39b33db

sys.path.insert(0, 'third_party/CenterNet2/projects/CenterNet2/')
from centernet.config import add_centernet_config

So after installing the copy of detectron within CenterNet2 it should work
Hope this helps

from grit.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.