reid from https://github.com/michuanhaohao/reid-strong-baseline
zhangmeng
2020-01-11 eadc7ad6bb163ced7fb81a85df65dbf3ee9d6158
run.go
@@ -103,10 +103,10 @@
         if feat == nil {
            // feat = make([]float32, 1)
         } else {
            s.fnLogger("REID~~~~~~Run Reid Use GPU: ", s.gpu)
            for k := 0; k < 3; k++ {
               s.fnLogger("REID~~~~~~extractor---human_feats------%f", feat[k+2000])
            }
            s.fnLogger("REID~~~~~~Run Reid Use GPU: ", s.gpu)
         }
         buf := float32SliceAsByteSlice(feat)
         c.Send(buf)
@@ -122,9 +122,5 @@
   l := len(src) * 4
   ptr := unsafe.Pointer(&src[0])
   // It is important to keep in mind that the Go garbage collector
   // will not interact with this data, and that if src if freed,
   // the behavior of any Go code using the slice is nondeterministic.
   // Reference: https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices
   return (*[1 << 26]byte)((*[1 << 26]byte)(ptr))[:l:l]
}