deepcut icon indicating copy to clipboard operation
deepcut copied to clipboard

Error in _cutoff_tile function

Open Matzy93 opened this issue 6 years ago • 0 comments

Hello!

I get the following error in the _cutoff_tile function: deepcut-cnn/python/pose/estimate_pose.py in _cutoff_tile(sm, num_tiles, idx, cut_off, is_x) 259 sm = sm[cut_off:, ...] 260 else: --> 261 sm = sm[cut_off:-cut_off, ...] 262 if is_x: 263 sm = sm.transpose((1, 0, 2, 3))

TypeError: slice indices must be integers or None or have an index method

From what I have seen in the estimate_pose.py file, cut_off = rf / stride and rf = 224 and _STRIDE = 8. (with the . (dot)), so cut_off is indeed a float number. I tried to change this, but then it does not work correctly.

And this does not happen with all the pictures, and I couldn't find a pattern in the picture where it does. Any help?

Thank you!

Matzy93 avatar Jul 13 '19 21:07 Matzy93