tensorflow-yolov3 icon indicating copy to clipboard operation
tensorflow-yolov3 copied to clipboard

question about restriction on xind, yind

Open bewithme opened this issue 3 years ago • 0 comments

in the dataset.py source file , after if not exist_positive: code line , why do you restrict the xind, yind to be 0-12 but not 0-25 or 0-51 ?

     ```
   xind = np.clip(xind, 0, self.train_output_sizes[i] - 1)     
            yind = np.clip(yind, 0, self.train_output_sizes[i] - 1)     
            # self.train_output_sizes[i] - 1 =12 all the time here   why ?????????

            # This will mitigate errors generated when the location computed by this is more the grid cell location. 
            # e.g. For 52x52 grid cells possible values of xind and yind are in range [0-51] including both. 
            # But sometimes the coomputation makes it 52 and then it will try to find that location in label array 
            # which is not present and throws error during training.

bewithme avatar Mar 31 '21 06:03 bewithme