Open captainst opened 5 years ago
thank you! it's very nice!
@captainst mind send a PR? I guess that xrange
also needs some change...
为了使这个伟大的项目与python3一起工作,有一些小的修改
- _在 shapecontext.py 中,从 utils import pairwise_distance 更改为 from utils.utils import pairwise_distance
- 在 utils.py 中,将 xrange 的所有实例更改为范围
- 在 utils.py 中,第 117 行,将 hi, wi = height/n, width/n 更改为 hi, wi = height//n, width//n
希望对您有所帮助。
因为我下载的init函数是空的,您可以通过电子邮件将文件发送给我吗?我的电子邮件 [2970765122@qq.com)。非常感谢!
There are some minor modifications in order to make this great project work with python3
In _shapecontext.py, change from utils import pairwise_distance to from utils.utils import pairwise_distance
In utils.py, change all instances of xrange to range
In utils.py, line 117, change hi, wi = height/n, width/n to hi, wi = height//n, width//n
Hope it helps.