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

Number of bounding boxes not consistent between extract_features.py and visualize.ipynb #101

Open
preetom-saha-arko opened this issue Feb 1, 2023 · 0 comments

Comments

@preetom-saha-arko
Copy link

I ran the following command to extract features from an image:
python3 extract_features.py --mode caffe --num-cpus 0 --gpus 1 --extract-mode roi_feats --min-max-boxes '1,70' --config-file configs/caffe/test-caffe-r101.yaml --image-dir "/home/arko/Documents/images" --out-dir "/home/arko/Documents/outputs"

(There is only one image in my image directory.)

After extracting the archive, I get multiple npy files. Reading the num_bbox.npy file, I get 63.

However, using the same model in visualize.ipynb with CONF_THRESH = 0.3. MIN_BOXES = 1 and MAX_BOXES = 70, I am getting 50 bounding boxes for the same image.

Why is there such discrepancies? Am I missing something?

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

1 participant