ZhihengCV / Bayesian-Crowd-Counting

Official Implement of ICCV 2019 oral paper Bayesian Loss for Crowd Count Estimation with Point Supervision
330 stars 84 forks source link

Ann .mat file to preprocess the input dataset #29

Open moncio opened 4 years ago

moncio commented 4 years ago

Hello to everyone, I'm interested to test this repo with my personal dataset against one of the pretrained models. Reviewing the UCF-QNRF dataset whic I downloaded, I realised for each image (jpg file), there is another file (img_xxx_ann.mat), and trying the script "preprocess_dataset.py" I observe this .mat file is necessary to preprocess the dataset just before to test it. So with all of that, my question is what is exaclty this .mat file? How is the way to generate it?

Thanks in advance!

navsgit commented 4 years ago

I'm having the same issue, please help

navsgit commented 4 years ago

Hi So I've finally figured it out, if you just want to test with your own dataset but don't have .mat files (or .npy) files, just copy an .npy file from a different image, because all it contains is data for comparison. so use that and use test.py.