Giter Club home page Giter Club logo

Comments (8)

h-summit avatar h-summit commented on July 28, 2024 9

it doesn't matter with package version.
In file demo/icdar2013_detection.py, inser a line into function setup_cfg, and then it is like this.

def setup_cfg(args):
# load config from file and command-line arguments
cfg = get_cfg()
cfg.set_new_allowed(True)
cfg.merge_from_file(args.config_file)
cfg.merge_from_list(args.opts)
# Set model
cfg.MODEL.WEIGHTS = args.weights
# Set score_threshold for builtin models
cfg.MODEL.RETINANET.SCORE_THRESH_TEST = args.confidence_threshold
cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = args.confidence_threshold
cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH = args.confidence_threshold
cfg.freeze()
return cfg

python demo/icdar2013_detection.py. it works

from textfusenet.

rigvedsah000 avatar rigvedsah000 commented on July 28, 2024 4

Adding cfg.set_new_allowed(True) solved the issue.

from textfusenet.

skeka avatar skeka commented on July 28, 2024

same issue anyone solved?

from textfusenet.

ying09 avatar ying09 commented on July 28, 2024

Please check the KEY:
TEXTFUSENET_MUTIL_PATH_FUSE_ON: True in file https://github.com/ying09/TextFuseNet/blob/master/configs/ocr/icdar2015_101_FPN.yaml

from textfusenet.

skeka avatar skeka commented on July 28, 2024

It is true but issue happened to me. I upgraded torchvision it doesn't happen to me now, don't know why. But another issue happens.
_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

from textfusenet.

skeka avatar skeka commented on July 28, 2024

I think it solved, maybe it comes from pytorch version or torchvision, or other librarities install version conflicts, I deleted my conda virtual and remade it, and solved.

from textfusenet.

Real-YeJ avatar Real-YeJ commented on July 28, 2024

@Hiteshsaai Yes. This probelm is due to wrong compilation.

from textfusenet.

aihiangng avatar aihiangng commented on July 28, 2024

Hi @skeka @Real-YeJ , I am facing the same issue. Can you share what pytorch, torchvision and detectron2 version youre using?
Thank you (:

from textfusenet.

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.