Skip to content

TypeError: slice indices must be integers or None or have an __index__ method #3

@Quevi

Description

@Quevi

Here is what I got. Anyone encountered the same problem?

Traceback (most recent call last):
  File "/Users/quqi/SDM/main.py", line 424, in <module>
    R,B,I = train(parameters)
  File "/Users/quqi/SDM/main.py", line 88, in train
    hog_list.append(hog(grey,mark,parameters))
  File "/Users/quqi/SDM/main.py", line 390, in hog
    orientation_histogram[j,:,:,i] = uniform_filter(temp_mag, size=pc)[x-r+pc/2:x+r:pc, y-r+pc/2:y+r:pc].T
TypeError: slice indices must be integers or None or have an __index__ method

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