cnn-registration
cnn-registration copied to clipboard
ImportError: cannot import name 'pairwise_distance'
Hi, When i run python3 demo.py in the root src , i faced with that error , why? How do i change to vgg15 with other cnn?
I'm facing the same problem
I moved the files in the 'utils' folder to the 'src' folder and changed the name of 'utils.py' to 'util.py'. It works.
I tried but it did not work Kindly, could you send me the modified files
Get Outlook for Androidhttps://aka.ms/ghei36
From: shyu4184 [email protected] Sent: Saturday, February 9, 2019 3:03:57 PM To: yzhq97/cnn-registration Cc: ahmed sedik; Comment Subject: Re: [yzhq97/cnn-registration] ImportError: cannot import name 'pairwise_distance' (#2)
I moved the files in the 'utils' folder to the 'src' folder and changed the name of 'utils.py' to 'util.py'. It works.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/yzhq97/cnn-registration/issues/2#issuecomment-462042897, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Af4ppHprNdh7qE3O6fLIh9_mQnMGPp5Sks5vLsc9gaJpZM4Vu82q.
@ahmedsedik2017 let me know your email address. I'll send the modified files.
[email protected] Thank you so much
Get Outlook for Androidhttps://aka.ms/ghei36
From: shyu4184 [email protected] Sent: Monday, February 11, 2019 4:45:23 AM To: yzhq97/cnn-registration Cc: ahmed sedik; Mention Subject: Re: [yzhq97/cnn-registration] ImportError: cannot import name 'pairwise_distance' (#2)
@ahmedsedik2017https://github.com/ahmedsedik2017 let me know your email address. I'll send the modified files.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/yzhq97/cnn-registration/issues/2#issuecomment-462207137, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Af4ppCcb2jX1yJ9ubXBIGyRut6nn9Aaeks5vMNlDgaJpZM4Vu82q.
@shyu4184 Can you email the files to me as well. My email id is [email protected]
@ahmedsedik2017 let me know your email address. I'll send the modified files.
Can you email the files to me as well? My email is [email protected]. Thank you so much!
@shyu4184 Can you email the files to me as well. My email id is [email protected]
@ahmedsedik2017 have you received the modified code? Could you send me a copy? My email id is [email protected]
use from utils.utils import pairwise_distance instead of from utils import pairwise_distance in the third line of the file shape_context.py
Could you run demo.py successly in python3? What the result is ?
@shyu4184 Can you please email the files to me as well. My email id is [email protected]
Could you run demo.py successly in python3? What the result is ?
python3 is OK. but "xrange" should be modified as "range"
@shyu4184 Please if you can mail me the files. my email address [email protected]
you can change the "from utils import pairwise_distance" in the "shape_context.py" to "from utils.utils import pairwise_distance", I try it and worked.
您是否收到修改后的代码?你能给我发一份吗?我的电子邮件 ID 是 [email protected]
您也可以通过电子邮件将文件发送给我吗?我的电子邮件 [[email protected])。非常感谢!