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

inference error #1

Closed
tre-pengxu opened this issue Apr 12, 2019 · 3 comments
Closed

inference error #1

tre-pengxu opened this issue Apr 12, 2019 · 3 comments

Comments

@tre-pengxu
Copy link

Hi,
I follow the instructions to create an environment FCOS,every package installed successful.

after run

python tools/test_net.py \
    --config-file configs/fcos/fcos_R_50_FPN_1x.yaml \
    MODEL.WEIGHT models/FCOS_R_50_FPN_1x.pth \
    TEST.IMS_PER_BATCH 4 

error happens

Traceback (most recent call last):
  File "tools/test_net.py", line 97, in <module>
    main()
  File "tools/test_net.py", line 49, in main
    cfg.merge_from_file(args.config_file)
  File "/home/peng/anaconda3/envs/FCOS/lib/python3.6/site-packages/yacs/config.py", line 213, in merge_from_file
    self.merge_from_other_cfg(cfg)
  File "/home/peng/anaconda3/envs/FCOS/lib/python3.6/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
    _merge_a_into_b(cfg_other, self, self, [])
  File "/home/peng/anaconda3/envs/FCOS/lib/python3.6/site-packages/yacs/config.py", line 460, in _merge_a_into_b
    _merge_a_into_b(v, b[k], root, key_list + [k])
  File "/home/peng/anaconda3/envs/FCOS/lib/python3.6/site-packages/yacs/config.py", line 473, in _merge_a_into_b
    raise KeyError("Non-existent config key: {}".format(full_key))
KeyError: 'Non-existent config key: MODEL.FCOS_ON'

thank you!

@stanstarks
Copy link
Collaborator

Are you sure you only have one version of maskrcnn_benchmark installed in this environment? Can you make sure the imported maskrcnn_benchmark is located in your current working directory by

python -c "import imp; print(imp.find_module('maskrcnn_benchmark'))"

@tianzhi0549
Copy link
Owner

@tre-pengxu Or you can try to run python setup.py build develop and then run the inference command line again.

@chhshen chhshen closed this as completed Apr 14, 2019
@tre-pengxu
Copy link
Author

@tre-pengxu Or you can try to run python setup.py build develop and then run the inference command line again.

I use conda remove the old FCOS environment, and create an new environment from the beginning,it works! thank you!

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

4 participants