Skip to content

Error in _cutoff_tile function #15

@Matzy93

Description

@Matzy93

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions