svishwa / crowdcount-mcnn

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

question in data_loader.py #41

Open ybcc2015 opened 5 years ago

ybcc2015 commented 5 years ago

what these two codes mean in line 34 and 35? ht_1 = int((ht/4)4) wd_1 = int((wd/4)4)

ybcc2015 commented 5 years ago

why multiply by 4? hope to answer my doubts,thanks!

EillotY commented 5 years ago

i can't open the link of [Shanghai Tech A] and [Shanghai Tech B],here is my email:1203999822@qq.com,would u please send me the pre-trained model files .Thanks anyway.

EillotY commented 5 years ago

朋友FileNotFoundError: File b'./part_B_final/test_data/ground_truth/IMG_1.csv' does not exist 你的csv是根据步骤1,2,3,4,5来的吗 先得去matlab里生成吗 是这意思吗
还有目前我用的参数直接是ht,和wd,因为ht_1或者wd_1这样一成就变成浮点型了在img里不适用会报错

Cli98 commented 4 years ago

why multiply by 4? hope to answer my doubts,thanks!

This is a trick. Adapt size to multiple of 4

ft-z commented 4 years ago

Did anyone has problem about 'AttributeError: 'DataFrame' object has no attribute 'as_matrix''? 有人遇到这个问题吗?在train.py调用data_loader.py的时候。

hiramustafa77 commented 2 years ago

Did anyone has problem about 'AttributeError: 'DataFrame' object has no attribute 'as_matrix''? 有人遇到这个问题吗?在train.py调用data_loader.py的时候。

yes it has been obsoleted and you may use .values instead of as_matrix()