yzhq97 / cnn-registration

An image registration method using convolutional neural network features.
MIT License
434 stars 138 forks source link

some modifications for python3 to work #15

Open captainst opened 5 years ago

captainst commented 5 years ago

There are some minor modifications in order to make this great project work with python3

  1. In _shapecontext.py, change from utils import pairwise_distance to from utils.utils import pairwise_distance

  2. In utils.py, change all instances of xrange to range

  3. In utils.py, line 117, change hi, wi = height/n, width/n to hi, wi = height//n, width//n

Hope it helps.

corin-lyz commented 4 years ago

thank you! it's very nice!

Borda commented 4 years ago

@captainst mind send a PR? I guess that xrange also needs some change...

2970765122 commented 1 year ago

为了使这个伟大的项目与python3一起工作,有一些小的修改

  1. _在 shapecontext.py 中,从 utils import pairwise_distance 更改为 from utils.utils import pairwise_distance
  2. utils.py 中,将 xrange 的所有实例更改为范围
  3. 在 utils.py 中,第 117 行,将 hi, wi = height/n, width/n 更改为 hi, wi = height//n, width//n

希望对您有所帮助。

因为我下载的init函数是空的,您可以通过电子邮件将文件发送给我吗?我的电子邮件 [2970765122@qq.com)。非常感谢!