reid from https://github.com/michuanhaohao/reid-strong-baseline
zhangmeng
2020-01-14 9b01e3eec13fae6c8e855fe2f4b331b9b20ce638
run.go
@@ -6,6 +6,7 @@
   "fmt"
   "io/ioutil"
   "os"
   "time"
   "unsafe"
   "basic.com/libgowrapper/sdkhelper.git"
@@ -87,8 +88,13 @@
         return
      default:
         msg, err = c.Recv()
         if err != nil {
         for {
            msg, err = c.Recv()
            if err == nil {
               break
            }
            s.fnLogger("REID~~~~~~Recv From HumanTrack error: ", err)
            time.Sleep(5 * time.Millisecond)
            continue
         }
@@ -134,7 +140,17 @@
         }
         buf := float32SliceAsByteSlice(feat)
         ioutil.WriteFile("./reid-feat-byte.txt", buf, 0644)
         c.Send(buf)
         for {
            err = c.Send(buf)
            if err == nil {
               break
            }
            s.fnLogger("REID~~~~~~Send HumanTrack error: ", err)
            time.Sleep(5 * time.Millisecond)
            continue
         }
      }
   }