crowdcount-mcnn icon indicating copy to clipboard operation
crowdcount-mcnn copied to clipboard

question in data_loader.py

Open ybcc2015 opened this issue 5 years ago • 6 comments

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

ybcc2015 avatar Mar 22 '19 09:03 ybcc2015

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

ybcc2015 avatar Mar 22 '19 09:03 ybcc2015

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

EillotY avatar Mar 22 '19 12:03 EillotY

朋友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里不适用会报错

EillotY avatar Mar 22 '19 12:03 EillotY

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

This is a trick. Adapt size to multiple of 4

Cli98 avatar Jan 08 '20 02:01 Cli98

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

ft-z avatar Mar 29 '20 06:03 ft-z

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()

hiramustafa77 avatar Sep 15 '21 07:09 hiramustafa77