zhiyuanyou / SAFECount

[WACV 2023] Few-shot Object Counting with Similarity-Aware Feature Enhancement
Other
128 stars 22 forks source link

How to input images and have them count only #38

Open sima05020 opened 1 week ago

sima05020 commented 1 week ago

I was able to successfully run the test case using train_val.py, but when I wanted to test the effect of this code on the general image case, I couldn't figure out how to get the count results by inputting only the query image we had prepared and the cropped support image. Do I have to prepare a json file with the boxes and points information?

If anyone is reading this, I would like to know.

I write this description with DeepL , so sorry for some discomfort.

zhiyuanyou commented 3 days ago

Hello, thanks for your question.

Our codes have two settings.

I think you are in the second case.

In this case, you need to:

Feel free to let me know if you have further questions.