Giter Site home page Giter Site logo

Comments (4)

jagin avatar jagin commented on July 16, 2024

@Auth0rM0rgan I was able to quickly look at that project and for me it looks like you should be able to use CenterMask models without any problem. Try to use --config-file option to load the model you need.

from detectron2-pipeline.

Auth0rM0rgan avatar Auth0rM0rgan commented on July 16, 2024

Hey @jagin,

I have tried to run the process_video.py with the absolute path to the centermask config file but I am getting an error that Non-existent config key: MODEL.VOVNET

This is my command:
python process_video.py -i 0 -p -d --config-file /home/XXX/centermask2/configs/centermask/centermask_V_39_eSE_FPN_ms_3x.yaml

This is the error I am getting:

Traceback (most recent call last): File "process_video.py", line 155, in <module> main(args) File "process_video.py", line 91, in main cpu=False if args.gpus > 0 else True) File "/home/media4us/PycharmProjects/detectron2-pipeline/pipeline/utils/detectron.py", line 9, in setup_cfg cfg.merge_from_file(config_file) File "/home/media4us/PycharmProjects/detectron2/detectron2/config/config.py", line 47, in merge_from_file self.merge_from_other_cfg(loaded_cfg) File "/home/media4us/anaconda3/lib/python3.7/site-packages/fvcore/common/config.py", line 121, in merge_from_other_cfg return super().merge_from_other_cfg(cfg_other) File "/home/media4us/anaconda3/lib/python3.7/site-packages/yacs/config.py", line 217, in merge_from_other_cfg _merge_a_into_b(cfg_other, self, self, []) File "/home/media4us/anaconda3/lib/python3.7/site-packages/yacs/config.py", line 460, in _merge_a_into_b _merge_a_into_b(v, b[k], root, key_list + [k]) File "/home/media4us/anaconda3/lib/python3.7/site-packages/yacs/config.py", line 473, in _merge_a_into_b raise KeyError("Non-existent config key: {}".format(full_key)) KeyError: 'Non-existent config key: MODEL.VOVNET'

Thanks!

from detectron2-pipeline.

jagin avatar jagin commented on July 16, 2024

I'm not able to help you with that. First I would check if your model is working with the demo sources of centermask2 project. Maybe there is something missing in my pipeline considering centermask2.
Good luck!

from detectron2-pipeline.

ShahriyarR avatar ShahriyarR commented on July 16, 2024

Well, I was able to get rid off the KeyError: 'Non-existent config key: MODEL.VOVNET' by:

  • cloning vovnet-detectron2 into detectron2-pipeline project.
  • rename vovnet-detectron2 to vovnet_detectron2
  • Then edit detectron2-pipeline/pipeline/utils/detectron.py
  • Add and import statement above
    from vovnet_detectron2.vovnet import add_vovnet_config
  • Then call add_vovnet_config() inside setup_cfg() as:
import torch
from detectron2.config import get_cfg
from vovnet_detectron2.vovnet import add_vovnet_config
def setup_cfg(config_file, weights_file=None, config_opts=[], confidence_threshold=None, cpu=False):
    # load config from file and command-line arguments
   cfg = get_cfg()
   add_vovnet_config(cfg)
   ...
   ...

But now the new error is:
KeyError: 'Non-existent config key: MODEL.FCOS

from detectron2-pipeline.

Related Issues (11)

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.