TextFuseNet icon indicating copy to clipboard operation
TextFuseNet copied to clipboard

KeyError: 'Non-existent config key: MODEL.TEXTFUSENET_MUTIL_PATH_FUSE_ON'

Open Hiteshsaai opened this issue 4 years ago • 8 comments

Facing this issue when running the icdar2015_detection.py file.

Note: I have changed the path for the respective weights, input, output, and config directories.

Couldn't resolve it, need help.

Hiteshsaai avatar Mar 22 '21 21:03 Hiteshsaai

same issue anyone solved?

skeka avatar Mar 26 '21 06:03 skeka

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

ying09 avatar Mar 26 '21 06:03 ying09

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

skeka avatar Mar 26 '21 07:03 skeka

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.

skeka avatar Mar 26 '21 07:03 skeka

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

Real-YeJ avatar Mar 27 '21 12:03 Real-YeJ

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

aihiangng avatar Jun 29 '21 03:06 aihiangng

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

h-summit avatar Jul 13 '21 06:07 h-summit

Adding cfg.set_new_allowed(True) solved the issue.

rigvedsah000 avatar Sep 23 '21 09:09 rigvedsah000