-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SiamFC++test问题,希望学长解答一下 #17
Comments
你好,可以先在工程目录下运行 compile.sh 脚本文件
------------------ 原始邮件 ------------------
发件人: "HonglinChu/SiamTrackers" <notifications@github.com>;
发送时间: 2020年10月20日(星期二) 下午3:20
收件人: "HonglinChu/SiamTrackers"<SiamTrackers@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: [HonglinChu/SiamTrackers] SiamFC++test问题,希望学长解答一下 (#17)
Traceback (most recent call last):
File "./bin/my_test.py", line 66, in
tester.test()
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 93, in test
self.run_tracker()
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 121, in run_tracker
self.worker(keys, all_devs[0], result_queue, speed_queue)
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 174, in worker
lost, speed = self.track_single_video(tracker, video, v_id=v_id)
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 238, in track_single_video
package="vot_overlap").vot_overlap
File "/home/c506/anaconda3/envs/siamfc/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 941, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/evaluation/vot_benchmark/pysot/utils/init.py", line 10, in
from . import region
ImportError: cannot import name 'region'
主要是不能加载SiamFC++/SiamFCpp-master/siamfcpp/evaluation/vot_benchmark/pysot/utils/init.py中的region模块
我用pycharm打开看了一下,好像是相对路径导入的问题,新手对这个问题不知道怎么解决,希望学长答复一下。谢谢
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
谢谢学长,十分感谢 |
有这个提示说明你没有成功编译setup.py 文件,如果编译成功会生成region相关文件,关于setup文件的编译你可以参考pysot官方说明
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年6月21日(星期一) 晚上8:31
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [HonglinChu/SiamTrackers] SiamFC++test问题,希望学长解答一下 (#17)
同样的情况,运行完complie.sh文件,生成了一个.so文件。然后运行my_test.py仍然提示cannot import name "region",是需要建立一个链接么?恳请您帮忙解答一下,谢谢了!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback (most recent call last):
File "./bin/my_test.py", line 66, in
tester.test()
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 93, in test
self.run_tracker()
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 121, in run_tracker
self.worker(keys, all_devs[0], result_queue, speed_queue)
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 174, in worker
lost, speed = self.track_single_video(tracker, video, v_id=v_id)
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/engine/tester/tester_impl/vot.py", line 238, in track_single_video
package="vot_overlap").vot_overlap
File "/home/c506/anaconda3/envs/siamfc/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 941, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/c506/lrh/SiamFC++/SiamFCpp-master/siamfcpp/evaluation/vot_benchmark/pysot/utils/init.py", line 10, in
from . import region
ImportError: cannot import name 'region'
主要是不能加载SiamFC++/SiamFCpp-master/siamfcpp/evaluation/vot_benchmark/pysot/utils/init.py中的region模块
我用pycharm打开看了一下,好像是相对路径导入的问题,新手对这个问题不知道怎么解决,希望学长答复一下。谢谢
The text was updated successfully, but these errors were encountered: