Coder Social home page Coder Social logo

Comments (9)

ThelilinNB avatar ThelilinNB commented on June 3, 2024 1

this is doing inference on one image using the detectron method. the code should be running in the appropriate directory

import detectron2 from detectron2.engine import DefaultPredictor from detectron2.config import get_cfg from vovnet_detectron2.vovnet.config import add_vovnet_config

Load a pre-trained VovNet-based model

cfg = get_cfg() print(1) add_vovnet_config(cfg) ----------->this is the part i was talking about print(2) cfg.merge_from_file("~~~~~~~~") # Specify your model's configuration file cfg.OUTPUT_DIR = "~~~~~~~" # Specify the path to your pre-trained checkpoint cfg.MODEL.WEIGHTS = os.path.join(cfg.OUTPUT_DIR, "model_final.pth") cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.6

I have also solved this problem. Thank you very much for your help

from centermask2.

ThelilinNB avatar ThelilinNB commented on June 3, 2024

Hello, have you solved this problem

from centermask2.

FruitPigFoot avatar FruitPigFoot commented on June 3, 2024

need help on this too

from centermask2.

ThelilinNB avatar ThelilinNB commented on June 3, 2024

need help on this too

hi, do you have the same problem? Have you found a solution? Can we discuss it? Thank you

from centermask2.

FruitPigFoot avatar FruitPigFoot commented on June 3, 2024

i managed to solve it

from centermask2.

ThelilinNB avatar ThelilinNB commented on June 3, 2024

i managed to solve it

can you tell me how you solved it? This problem has been bothering me for several days, but I still haven't found a solution. I am very eager to get your help, thank you bro

from centermask2.

FruitPigFoot avatar FruitPigFoot commented on June 3, 2024

in my instance i had to add code line : add_vovnet_config(cfg) and also had to import the add_vovnet_config. It has gotta be the same on centermask too. Or else can you upload the code where it's bothering you?

from centermask2.

ThelilinNB avatar ThelilinNB commented on June 3, 2024

in my instance i had to add code line : add_vovnet_config(cfg) and also had to import the add_vovnet_config. It has gotta be the same on centermask too. Or else can you upload the code where it's bothering you?

Sorry, I just saw the information today. As for the add_vovnet_congig(cfg) you said, I can't understand where to add this part. Could you please upload the modified part of the code so that I can see it more intuitively

from centermask2.

FruitPigFoot avatar FruitPigFoot commented on June 3, 2024

this is doing inference on one image using the detectron method. the code should be running in the appropriate directory

import detectron2
from detectron2.engine import DefaultPredictor
from detectron2.config import get_cfg
from vovnet_detectron2.vovnet.config import add_vovnet_config

Load a pre-trained VovNet-based model

cfg = get_cfg()
print(1)
add_vovnet_config(cfg) ----------->this is the part i was talking about
print(2)
cfg.merge_from_file("~~~~~~~~") # Specify your model's configuration file
cfg.OUTPUT_DIR = "~~~~~~~" # Specify the path to your pre-trained checkpoint
cfg.MODEL.WEIGHTS = os.path.join(cfg.OUTPUT_DIR, "model_final.pth")
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.6

from centermask2.

Related Issues (20)

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.