Currently if you run the script ./experiments/scripts/faster_rcnn_alt_opt.sh [GPU_ID] [NET] it fails during testing mode with: Input blob arguments do not match net inputs
I traced that back to HAS_RPN = False in lib/fast_rcnn/config.py even though the experiments/cfgs/faster_rcnn_alt_opt.yml sets it to True.
I believe the .yml file should override the default settings given by config.py, is that correct?
I'm unable to replicate this issue.
I think this is an easy_dict issue. I am facing a similar problem where I try to set the config using the experiments/cfgs/faster_rcnn_alt_opt.yml.
To investigate the problem, I changed the train_net script as follows:
if args.cfg_file is not None:
cfg_from_file(args.cfg_file)
print cfg.TRAIN['PROPOSAL_METHOD']
print cfg.TRAIN.PROPOSAL_METHOD
This gives an output
selective_search
I suspect the _merge_a_into_b(a, b) in config.py creates the ambiguity.
I fixed the issue by:
cfg_from_file(cfg_file)
cfg = edict(cfg) ## add this line
Most helpful comment
I think this is an easy_dict issue. I am facing a similar problem where I try to set the config using the experiments/cfgs/faster_rcnn_alt_opt.yml.
To investigate the problem, I changed the train_net script as follows:
This gives an output
I suspect the _merge_a_into_b(a, b) in config.py creates the ambiguity.