xhp-hust-2018-2011 / SS-DCNet

From Open Set to Closed Set: Supervised Spatial Divide-and-Conquer for Object Counting
78 stars 19 forks source link

Error when loading .mat file #15

Open And1210 opened 3 years ago

And1210 commented 3 years ago

I am trying to run your code and it is giving me a strange error. Please help if possible!

python3 all_main.py --dataset SHA /usr/lib/python3/dist-packages/requests/init.py:80: RequestsDependencyWarning: urllib3 (1.26.4) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning) [1.00e-06 5.00e-02 1.00e-01 1.50e-01 2.00e-01 2.50e-01 3.00e-01 3.50e-01 4.00e-01 4.50e-01 5.00e-01 1.00e+00 1.50e+00 2.00e+00 2.50e+00 3.00e+00 3.50e+00 4.00e+00 4.50e+00 5.00e+00 5.50e+00 6.00e+00 6.50e+00 7.00e+00 7.50e+00 8.00e+00 8.50e+00 9.00e+00 9.50e+00 1.00e+01 1.05e+01 1.10e+01 1.15e+01 1.20e+01 1.25e+01 1.30e+01 1.35e+01 1.40e+01 1.45e+01 1.50e+01 1.55e+01 1.60e+01 1.65e+01 1.70e+01 1.75e+01 1.80e+01 1.85e+01 1.90e+01 1.95e+01 2.00e+01 2.05e+01 2.10e+01 2.15e+01 2.20e+01] Traceback (most recent call last): File "all_main.py", line 45, in main(opt) File "/home/andrew/Grad/CrowdCounting/SS-DCNet/main_process.py", line 45, in main if_test=True, IF_loadmem=opt['IF_savemem_test']) File "/home/andrew/Grad/CrowdCounting/SS-DCNet/load_data_V2.py", line 48, in init mat = sio.loadmat(rgb_dir) File "/usr/local/lib/python3.6/dist-packages/scipy/io/matlab/mio.py", line 141, in loadmat MR, file_opened = mat_reader_factory(file_name, appendmat, **kwargs) File "/usr/local/lib/python3.6/dist-packages/scipy/io/matlab/mio.py", line 64, in mat_reader_factory byte_stream, file_opened = _open_file(file_name, appendmat) TypeError: 'NoneType' object is not iterable