Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'keyError: non-existent config key: TEXTFUSENET_MUTIL_PATH_FUSE_ON' #105

Open
AI-Passionner opened this issue Nov 10, 2022 · 1 comment
Open

Comments

@AI-Passionner
Copy link

@ying09 I am using TextFuseNet to detect the scent text in an image. When I had detectron2 installed (MacPro + M1 chip) and tried to run the demo, it shows the error as
'keyError: non-existent config key: TEXTFUSENET_MUTIL_PATH_FUSE_ON'

I searched this issue around and it seems I am the first one in the TextFuseNet. Any suggestions?

A similar issue was found but I don't have an idea.

Thanks.

@diwakar-vsingh
Copy link

In all the scripts inside the demo folder, just insert a line (cfg.set_new_allowed(True)) into the function setup_cfg. It will look something like:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants