AlpacaTechJP/selectivesearch

Does selectivesearch support python3?

dylansun opened this issue · 5 comments

ATT

No, the PYPI page of selective does NOT state python 3 support. So I don't think it is supported in python 3.

plz support python3...(´・ω・`)

oh...That explains why I come with such error:

File "D:\miniconda3\envs\tensor\lib\site-packages\selectivesearch_init_.py", line 1, in
from selectivesearch import selective_search # NOQA
ImportError: cannot import name 'selective_search'

I convert these two py file to py3(No guarantee correct).

It works like this: seems correct ^_^
qq 20170515170330

keras_mooc_ai.zip

maybe should replace line 287

i, j = sorted(list(S.items()), cmp=lambda a, b: cmp(a[1], b[1]))[-1][0]

with
i, j = sorted(list(S.items()), key = lambda a: a[1])[-1][0]