From 0ea7a18ff3cc53ae711ed2d142a1c755f8f2f959 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期四, 19 十二月 2019 16:54:25 +0800 Subject: [PATCH] update --- gohumantrack/gohumantrack.go | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/gohumantrack/gohumantrack.go b/gohumantrack/gohumantrack.go index d09664b..d9a18a7 100644 --- a/gohumantrack/gohumantrack.go +++ b/gohumantrack/gohumantrack.go @@ -25,6 +25,7 @@ void *create_fake_image(const int size){ unsigned char *img = (unsigned char*)malloc(size); + printf("batch~~~~~~ fake image len: %d\n", size); memset(img, 0, size); return img; } @@ -192,12 +193,13 @@ var freeFakeImage []unsafe.Pointer for k, v := range imgs { - logo.Infoln("batch~~~~~~", k, " image: ", v) + logo.Infoln("batch~~~~~~", k, " image: ", v, " size: ", wid, "x", hei, "x", chn) if v == nil { fake := C.create_fake_image(C.int(wid * hei * chn)) freeFakeImage = append(freeFakeImage, fake) C.fill_images(cImgs, C.int(h.batchSize), C.int(k), fake, C.int(wid), C.int(hei), C.int(chn)) } else { + logo.Infoln("batch~~~~~~ real image len: ", len(v.Data), " size: ", v.Width, "x", v.Height, "x", v.Channel) C.fill_images(cImgs, C.int(h.batchSize), C.int(k), unsafe.Pointer(&v.Data[0]), C.int(v.Width), C.int(v.Height), C.int(v.Channel)) } } -- Gitblit v1.8.0