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

Inference data preprocess

Open TerenceChen95 opened this issue 4 years ago • 3 comments

Hello!

I'm confused about the inference procedure since no demo code were given. Should I just input a gray image into the model or do things like normalization? Looking for replies~

TerenceChen95 avatar Jul 23 '20 03:07 TerenceChen95

hello there! Did you get your own test code which you can use the trained mcnn to count the number of people in a picture given by yourself? if you did,could you share any idea of this to me by repling this writing,it's very nice of you if do so! appreciation sended

xuwanyan1998 avatar Nov 11 '20 12:11 xuwanyan1998

@xuwanyan1998 it's pretty easy, just send the gray image into the model. The output is a gray map with values from 0-1. You can sum them up and get the estimated count :)

TerenceChen95 avatar Nov 11 '20 12:11 TerenceChen95

very nice to have your reply,i'm a greenhand in using python,and coding,and this is my first project,so i'm tring to understand what the meaning of the code and files,but i will make more effort in coding ,thx a lot for repling me , it's also my first time surfing the github,maybe alittle bit late for learning skills,anyway,thx a lot,it's very cheerful!

xuwanyan1998 avatar Nov 11 '20 12:11 xuwanyan1998