DMNet复现(一)之数据准备篇:Density map guided object detection in aerial image
一、生成密度图密度图标签生成采用以下代码,生成训练集密度图gt:importcv2importglobimporth5pyimportscipyimportpickleimportnumpyasnpfromPILimportImagefromitertoolsimportislicefromtqdmimporttqdmfrommatplotlibimportpyplotaspltfromsorte