svishwa / crowdcount-mcnn

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

I got Attribute error when running the code. Anyone can help me with it? Many thx. #35

Closed Avalon7 closed 5 years ago

Avalon7 commented 5 years ago

Traceback (most recent call last): File "train.py", line 106, in density_map = net(im_data, gt_data) File "/usr/local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 489, in call result = self.forward(*input, **kwargs) File "/Users/yinweicheng/Desktop/job/summer-project/crowdcount-mcnn/src/crowd_count.py", line 17, in forward im_data = network.np_to_variable(im_data, is_cuda=False, is_training=self.training) AttributeError: module 'network' has no attribute 'np_to_variable'

Avalon7 commented 5 years ago

Solved, shouldn't use python3.