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 #6

Open
Remosy opened this issue Sep 26, 2022 · 1 comment
Open

Inference #6

Remosy opened this issue Sep 26, 2022 · 1 comment

Comments

@Remosy
Copy link

Remosy commented Sep 26, 2022

Is there anyway that I can use your weight to do inference via webcam? Would it be prossible if you could provide inference part.
I have tried to use the demo code from detectron2 https://github.com/facebookresearch/detectron2/tree/main/demo.
I copied whole demo folder into AirDet folder;
Then I changed the config file from "configs/quick_schedules/mask_rcnn_R_50_FPN_inference_acc_test.yaml" to "./configs/fsod/R101/test_R_101_C4_1x_coco3.yaml", which is from your config folder.
But, I got
KeyError: 'Non-existent config key: DATASETS.TESTSHOTS'
when code runs self.merge_from_other_cfg(loaded_cfg)

@Jaraxxus-Me
Copy link
Owner

You may need to re-write the config.py file in our fewx code, and import config from fewx instead of detectron2.
Generally, the inference is in 2 steps:

  1. generate support features from support images.
  2. Inference on Query images.
    I believe it is possible to integrate any detectron2 functions into our library.

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