svishwa / crowdcount-mcnn

Single Image Crowd Counting via MCNN (Unofficial Implementation)
MIT License
499 stars 179 forks source link

shanghai tech dataset #8

Closed cryax closed 6 years ago

cryax commented 6 years ago

Hi can you share your shanghai data set? I downloaded this data set from http://cs-chan.com/downloads_crowd_dataset.html but got a totally different format with your preprocess.

svishwa commented 6 years ago

Hi,

You need to write to the original authors for obtaining the ShanghaiTech dataset. The link that you have shared is different from the ones I used in my experiments.

cryax commented 6 years ago

Hi sorry for this mistake.

svishwa commented 6 years ago

The dataset can be downloaded from here: Dropbox: https://www.dropbox.com/s/fipgjqxl7uj8hd5/ShanghaiTech.zip?dl=0 Baidu Disk: http://pan.baidu.com/s/1nuAYslz

aruna09 commented 5 years ago

Hey. I downloaded the shanghaitech dataset via dropbox. I opened the .mat files using scipy.io. However when I print the obtained file after the conversion, the terminal output is a bunch of array elements. Can someone explain me what does that mean? python load_matfile.py {'image_info': array([[array([[(array([[163.48483516, 341.77022977], [211.56475524, 442.02197802], [333.29902098, 517.72227772], [436.6197003 , 372.45954046], [391.60871129, 374.50549451], [ 45.58673327, 346.37362637], [ 11.317003 , 344.32767233], [ 15.40891109, 325.4025974 ], [ 17.96635365, 284.48351648], [ 45.58673327, 288.57542458], [ 35.86845155, 320.28771229], [ 55.8165035 , 320.7992008 ], [ 80.36795205, 307.5004995 ], [ 60.93138861, 289.08691309], [ 77.29902098, 286.01798202], [106.96535465, 312.1038961 ], [113.61470529, 297.78221778], [127.93638362, 314.14985015], [117.19512488, 286.52947053], [136.1201998 , 286.01798202], [167.320999 , 321.82217782], [157.09122877, 304.43156843], [186.24607393, 300.85114885], [189.82649351, 322.33366633], [214.37794206, 326.93706294], [239.95236763, 331.02897103], [240.97534466, 372.45954046], [198.01030969, 294.71328671], [181.13118881, 279.36863137], [214.37794206, 286.52947053], [221.53878122, 296.75924076], [247.11320679, 286.01798202], [258.87744256, 294.71328671], [253.76255744, 316.70729271], [274.2220979 , 326.93706294], [267.57274725, 310.56943057], [279.84847153, 299.82817183], [281.38293706, 284.48351648], [293.14717283, 314.14985015], [328.95136863, 320.28771229], [306.44587413, 321.31068931], [312.07224775, 289.5984016 ], [336.6236963 , 286.01798202], [359.64067932, 319.77622378], [376.00831169, 315.17282717], [379.58873127, 289.5984016 ], [363.73258741, 284.995005 ], [399.53678322, 325.4025974 ], [425.11120879, 348.41958042], [425.11120879, 331.02897103], [416.4159041 , 309.03496503], [427.15716284, 309.03496503], [436.36395604, 320.7992008 ], [440.96735265, 336.65534466], [452.73158841, 335.12087912], [452.73158841, 317.21878122], [442.50181818, 306.47752248], [440.45586414, 296.75924076], [417.43888112, 292.15584416], [403.62869131, 293.69030969], [389.30701299, 289.08691309], [398.51380619, 282.43756244], [499.0212987 , 359.16083916], [481.63068931, 347.3966034 ], [477.02729271, 313.12687313], [484.69962038, 308.01198801], [485.7225974 , 296.75924076], [476.5158042 , 293.17882118], [461.68263736, 298.80519481], [454.5217982 , 290.10989011], [488.79152847, 286.52947053], [494.92939061, 292.15584416], [509.25106893, 325.91408591], [522.54977023, 353.02297702], [550.68163836, 358.64935065], [535.33698302, 335.63236763], [532.77954046, 320.7992008 ], [519.48083916, 315.68431568], [530.2220979 , 295.73626374], [509.25106893, 294.71328671], [504.64767233, 283.46053946], [413.60271728, 272.71928072], [383.93638362, 278.34565435], [400.30401598, 275.78821179], [442.24607393, 272.20779221], [428.94737263, 271.6963037 ], [453.49882118, 267.09290709], [493.90641359, 276.2997003 ], [512.83148851, 279.36863137], [521.0153047 , 285.50649351], [524.59572428, 272.71928072], [541.47484515, 294.71328671], [555.79652348, 328.98301698], [551.70461538, 311.08091908], [584.43988012, 329.49450549], [566.02629371, 327.44855145], [572.16415584, 331.54045954], [589.04327672, 353.53446553], [618.19812188, 350.46553447], [626.89342657, 323.35664336], [602.85346653, 310.56943057], [585.46285714, 309.03496503], [576.76755245, 297.78221778], [570.62969031, 288.57542458], [560.39992008, 285.50649351], [560.39992008, 276.81118881], [572.67564436, 277.32267732], [586.48583417, 272.20779221], [557.33098901, 270.16183816], [593.13518482, 297.78221778], [608.47984016, 292.15584416], [610.52579421, 269.13886114], [592.6236963 , 279.36863137], [621.26705295, 306.98901099], [645.30701299, 316.70729271], [645.8185015 , 348.93106893], [660.65166833, 367.85614386], [634.05426573, 430.76923077], [696.96735265, 364.27572428], [720.49582418, 346.88511489], [694.9213986 , 337.67832168], [670.88143856, 321.82217782], [618.70961039, 276.2997003 ], [624.84747253, 271.6963037 ], [683.15716284, 294.71328671], [667.81250749, 294.2017982 ], [700.03628372, 282.43756244], [696.96735265, 311.08091908], [612.57174825, 282.94905095], [635.07724276, 280.9030969 ], [664.74357642, 274.76523477], [680.59972028, 283.46053946], [724.07624376, 313.12687313], [732.77154845, 333.07492507], [754.76555445, 338.7012987 ], [741.46685315, 318.24175824], [751.18513487, 301.36263736], [737.37494505, 294.71328671], [722.54177822, 297.27072927], [766.52979021, 295.22477522], [760.39192807, 307.5004995 ], [766.52979021, 319.26473526], [751.69662338, 286.52947053], [744.0242957 , 290.10989011], [727.14517483, 289.08691309], [807.96035964, 328.47152847], [810.5178022 , 344.32767233], [824.83948052, 320.7992008 ], [816.14417582, 290.62137862], [837.62669331, 295.73626374], [856.55176823, 298.29370629], [868.82749251, 292.15584416], [859.10921079, 283.97202797], [780.33998002, 289.08691309], [836.60371628, 281.92607393], [434.98722513, 284.48726003], [452.17228621, 283.87350785], [444.80726003, 278.9634904 ], [460.76481675, 275.28097731], [467.51609075, 269.75720768], [478.56363002, 283.25975567], [488.9974171 , 280.19099476], [541.78010471, 278.34973822], [647.34547993, 283.25975567], [652.86924956, 293.07979058], [649.80048866, 305.35483421], [662.68928447, 307.19609075], [674.9643281 , 302.2860733 ], [682.94310646, 310.87860384], [684.784363 , 278.34973822], [685.39811518, 269.75720768], [694.60439791, 266.68844677]]), array([[172]], dtype=uint8))]], dtype=[('location', 'O'), ('number', 'O')])]], dtype=object), 'version': '1.0', 'header': 'MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Nov 18 20:05:26 2016', 'globals': []}

WhuRan commented 5 years ago

I have the same question, do you know what does that mean? @aruna09

Shandria commented 5 years ago

Hey. I downloaded the shanghaitech dataset via dropbox. I opened the .mat files using scipy.io. However when I print the obtained file after the conversion, the terminal output is a bunch of array elements. Can someone explain me what does that mean? python load_matfile.py {'image_info': array([[array([[(array([[163.48483516, 341.77022977], [211.56475524, 442.02197802], [333.29902098, 517.72227772], [436.6197003 , 372.45954046], [391.60871129, 374.50549451], [ 45.58673327, 346.37362637], [ 11.317003 , 344.32767233], [ 15.40891109, 325.4025974 ], [ 17.96635365, 284.48351648], [ 45.58673327, 288.57542458], [ 35.86845155, 320.28771229], [ 55.8165035 , 320.7992008 ], [ 80.36795205, 307.5004995 ], [ 60.93138861, 289.08691309], [ 77.29902098, 286.01798202], [106.96535465, 312.1038961 ], [113.61470529, 297.78221778], [127.93638362, 314.14985015], [117.19512488, 286.52947053], [136.1201998 , 286.01798202], [167.320999 , 321.82217782], [157.09122877, 304.43156843], [186.24607393, 300.85114885], [189.82649351, 322.33366633], [214.37794206, 326.93706294], [239.95236763, 331.02897103], [240.97534466, 372.45954046], [198.01030969, 294.71328671], [181.13118881, 279.36863137], [214.37794206, 286.52947053], [221.53878122, 296.75924076], [247.11320679, 286.01798202], [258.87744256, 294.71328671], [253.76255744, 316.70729271], [274.2220979 , 326.93706294], [267.57274725, 310.56943057], [279.84847153, 299.82817183], [281.38293706, 284.48351648], [293.14717283, 314.14985015], [328.95136863, 320.28771229], [306.44587413, 321.31068931], [312.07224775, 289.5984016 ], [336.6236963 , 286.01798202], [359.64067932, 319.77622378], [376.00831169, 315.17282717], [379.58873127, 289.5984016 ], [363.73258741, 284.995005 ], [399.53678322, 325.4025974 ], [425.11120879, 348.41958042], [425.11120879, 331.02897103], [416.4159041 , 309.03496503], [427.15716284, 309.03496503], [436.36395604, 320.7992008 ], [440.96735265, 336.65534466], [452.73158841, 335.12087912], [452.73158841, 317.21878122], [442.50181818, 306.47752248], [440.45586414, 296.75924076], [417.43888112, 292.15584416], [403.62869131, 293.69030969], [389.30701299, 289.08691309], [398.51380619, 282.43756244], [499.0212987 , 359.16083916], [481.63068931, 347.3966034 ], [477.02729271, 313.12687313], [484.69962038, 308.01198801], [485.7225974 , 296.75924076], [476.5158042 , 293.17882118], [461.68263736, 298.80519481], [454.5217982 , 290.10989011], [488.79152847, 286.52947053], [494.92939061, 292.15584416], [509.25106893, 325.91408591], [522.54977023, 353.02297702], [550.68163836, 358.64935065], [535.33698302, 335.63236763], [532.77954046, 320.7992008 ], [519.48083916, 315.68431568], [530.2220979 , 295.73626374], [509.25106893, 294.71328671], [504.64767233, 283.46053946], [413.60271728, 272.71928072], [383.93638362, 278.34565435], [400.30401598, 275.78821179], [442.24607393, 272.20779221], [428.94737263, 271.6963037 ], [453.49882118, 267.09290709], [493.90641359, 276.2997003 ], [512.83148851, 279.36863137], [521.0153047 , 285.50649351], [524.59572428, 272.71928072], [541.47484515, 294.71328671], [555.79652348, 328.98301698], [551.70461538, 311.08091908], [584.43988012, 329.49450549], [566.02629371, 327.44855145], [572.16415584, 331.54045954], [589.04327672, 353.53446553], [618.19812188, 350.46553447], [626.89342657, 323.35664336], [602.85346653, 310.56943057], [585.46285714, 309.03496503], [576.76755245, 297.78221778], [570.62969031, 288.57542458], [560.39992008, 285.50649351], [560.39992008, 276.81118881], [572.67564436, 277.32267732], [586.48583417, 272.20779221], [557.33098901, 270.16183816], [593.13518482, 297.78221778], [608.47984016, 292.15584416], [610.52579421, 269.13886114], [592.6236963 , 279.36863137], [621.26705295, 306.98901099], [645.30701299, 316.70729271], [645.8185015 , 348.93106893], [660.65166833, 367.85614386], [634.05426573, 430.76923077], [696.96735265, 364.27572428], [720.49582418, 346.88511489], [694.9213986 , 337.67832168], [670.88143856, 321.82217782], [618.70961039, 276.2997003 ], [624.84747253, 271.6963037 ], [683.15716284, 294.71328671], [667.81250749, 294.2017982 ], [700.03628372, 282.43756244], [696.96735265, 311.08091908], [612.57174825, 282.94905095], [635.07724276, 280.9030969 ], [664.74357642, 274.76523477], [680.59972028, 283.46053946], [724.07624376, 313.12687313], [732.77154845, 333.07492507], [754.76555445, 338.7012987 ], [741.46685315, 318.24175824], [751.18513487, 301.36263736], [737.37494505, 294.71328671], [722.54177822, 297.27072927], [766.52979021, 295.22477522], [760.39192807, 307.5004995 ], [766.52979021, 319.26473526], [751.69662338, 286.52947053], [744.0242957 , 290.10989011], [727.14517483, 289.08691309], [807.96035964, 328.47152847], [810.5178022 , 344.32767233], [824.83948052, 320.7992008 ], [816.14417582, 290.62137862], [837.62669331, 295.73626374], [856.55176823, 298.29370629], [868.82749251, 292.15584416], [859.10921079, 283.97202797], [780.33998002, 289.08691309], [836.60371628, 281.92607393], [434.98722513, 284.48726003], [452.17228621, 283.87350785], [444.80726003, 278.9634904 ], [460.76481675, 275.28097731], [467.51609075, 269.75720768], [478.56363002, 283.25975567], [488.9974171 , 280.19099476], [541.78010471, 278.34973822], [647.34547993, 283.25975567], [652.86924956, 293.07979058], [649.80048866, 305.35483421], [662.68928447, 307.19609075], [674.9643281 , 302.2860733 ], [682.94310646, 310.87860384], [684.784363 , 278.34973822], [685.39811518, 269.75720768], [694.60439791, 266.68844677]]), array([[172]], dtype=uint8))]], dtype=[('location', 'O'), ('number', 'O')])]], dtype=object), 'version': '1.0', 'header': 'MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Nov 18 20:05:26 2016', 'globals': []}

Hey! Have you found the answer to your Question? Please do share if you can. Thank you

aruna09 commented 5 years ago

No I didn't find any solution to it.