davideverona / deep-crowd-counting_crowdnet

An independent implementation of "CrowdNet: A Deep Convolutional Network for Dense Crowd Counting"
185 stars 78 forks source link

A bug in predict function #7

Open xjock opened 6 years ago

xjock commented 6 years ago
        for out in net.blobs[out_layer].data:
            y = out[0] #single channel
            Y_deploy.append(y)

the Y_deploy need to be allocated in new memory, or it will be always the last predict result .

            Y_deploy.append(y.copy()) is right.