Open kewin1807 opened 4 years ago
SS-DCNet follows the local count framework. It does not produce a per-pixel density map like conventional counting networks do.
Anyway, are there any intermittent steps that could be visualized to illustrate the counting process? Density map is quite illustrative for that matter.
I found that you can go like this:
f1 = plt.figure(1)
outputs = outputs.cpu()
outputs = outputs.squeeze(0)
outputs = outputs.squeeze(0)
pred_frame = plt.gca()
plt.imshow(outputs, 'jet')
pred_frame.axes.get_yaxis().set_visible(False)
pred_frame.axes.get_xaxis().set_visible(False)
Pretty satisfactory for me.
@poppinace @Artyrm how would labels of this dataset look like. I see it does labels.sum() in validation.py i dint understand why do we .sum() could you please explain
Please show me the code test with an image, which is show density map feature. Thanks