Open zhangyanabc opened 5 years ago
I met such error when I run 'eval.py',how can I solve it? Thanks!
python bin/eval.py --dataset_dir /home/zy/dataset/OTB100 --dataset OTB100 --tracker_result_dir /home/zy/code/pysot-toolkit/tracker/ --trackers SiamRPN++ C-COT DaSiamRPN ECO --num 4 --show_video_level --vis loading OTB100: 100%|█████████████████████████████████████| 100/100 [00:00<00:00, 300.43it/s, Board] eval success: 0%| | 0/4 [00:00<?, ?it/s]/home/zy/code/pysot-toolkit/tracker/SiamRPN++/basketball.txt /home/zy/code/pysot-toolkit/tracker/C-COT/basketball.txt /home/zy/code/pysot-toolkit/tracker/DaSiamRPN/basketball.txt /home/zy/code/pysot-toolkit/tracker/ECO/basketball.txt multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/multiprocessing/pool.py", line 119, in worker result = (True, func(*args, kwds)) File "./pysot/evaluation/ope_benchmark.py", line 50, in eval_success successret[video.name] = success_overlap(gt_traj, tracker_traj, n_frame) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/dispatcher.py", line 349, in _compile_for_args error_rewrite(e, 'typing') File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/dispatcher.py", line 316, in error_rewrite reraise(type(e), e, None) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 658, in reraise raise value.with_traceback(tb) numba.errors.TypingError: Failed at nopython (nopython frontend) Internal error at <numba.typeinfer.ArgConstraint object at 0x7f88e1d2fb38>: --%<---------------------------------------------------------------------------- Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 577, in new_error_context yield File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 199, in call** assert ty.is_precise() AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 142, in propagate constraint(typeinfer) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 200, in call typeinfer.add_type(self.dst, ty, loc=self.loc) File "/home/zy/anaconda3/lib/python3.5/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 585, in new_error_context six.reraise(type(newerr), newerr, tb) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 659, in reraise raise value numba.errors.InternalError: [1] During: typing of argument at ./pysot/utils/statistics.py (104) --%<----------------------------------------------------------------------------
File "pysot/utils/statistics.py", line 104: def success_overlap(gt_bb, result_bb, n_frame): thresholds_overlap = np.arange(0, 1.05, 0.05) ^
This error may have been caused by the following argument(s):
- argument 1: Unsupported array dtype: object
This is not usually a problem with Numba itself but instead often caused by the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit: http://numba.pydata.org/numba-doc/dev/reference/pysupported.html and http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html
For more information about typing errors and how to debug them visit: http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message and traceback, along with a minimal reproducer at: https://github.com/numba/numba/issues/new
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "bin/eval.py", line 40, in trackers), desc='eval success', total=len(trackers), ncols=100): File "/home/zy/anaconda3/lib/python3.5/site-packages/tqdm/_tqdm.py", line 1022, in iter for obj in iterable: File "/home/zy/anaconda3/lib/python3.5/multiprocessing/pool.py", line 695, in next raise value numba.errors.TypingError: Failed at nopython (nopython frontend) Internal error at <numba.typeinfer.ArgConstraint object at 0x7f88e1d2fb38>: --%<---------------------------------------------------------------------------- Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 577, in new_error_context yield File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 199, in call assert ty.is_precise() AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 142, in propagate constraint(typeinfer) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 200, in call typeinfer.add_type(self.dst, ty, loc=self.loc) File "/home/zy/anaconda3/lib/python3.5/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 585, in new_error_context six.reraise(type(newerr), newerr, tb) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 659, in reraise raise value numba.errors.InternalError: [1] During: typing of argument at ./pysot/utils/statistics.py (104) --%<----------------------------------------------------------------------------
File "pysot/utils/statistics.py", line 104: def success_overlap(gt_bb, result_bb, n_frame): thresholds_overlap = np.arange(0, 1.05, 0.05) ^
This error may have been caused by the following argument(s):
- argument 1: Unsupported array dtype: object
This is not usually a problem with Numba itself but instead often caused by the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit: http://numba.pydata.org/numba-doc/dev/reference/pysupported.html and http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html
For more information about typing errors and how to debug them visit: http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message and traceback, along with a minimal reproducer at: https://github.com/numba/numba/issues/new
The code is working, you check if the ‘--tracker’ parameter you gave is in the ‘/result’ folder.
I met such error when I run 'eval.py',how can I solve it? Thanks!
python bin/eval.py --dataset_dir /home/zy/dataset/OTB100 --dataset OTB100 --tracker_result_dir /home/zy/code/pysot-toolkit/tracker/ --trackers SiamRPN++ C-COT DaSiamRPN ECO --num 4 --show_video_level --vis loading OTB100: 100%|█████████████████████████████████████| 100/100 [00:00<00:00, 300.43it/s, Board] eval success: 0%| | 0/4 [00:00<?, ?it/s]/home/zy/code/pysot-toolkit/tracker/SiamRPN++/basketball.txt /home/zy/code/pysot-toolkit/tracker/C-COT/basketball.txt /home/zy/code/pysot-toolkit/tracker/DaSiamRPN/basketball.txt /home/zy/code/pysot-toolkit/tracker/ECO/basketball.txt multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/multiprocessing/pool.py", line 119, in worker result = (True, func(*args, kwds)) File "./pysot/evaluation/ope_benchmark.py", line 50, in eval_success successret[video.name] = success_overlap(gt_traj, tracker_traj, n_frame) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/dispatcher.py", line 349, in _compile_for_args error_rewrite(e, 'typing') File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/dispatcher.py", line 316, in error_rewrite reraise(type(e), e, None) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 658, in reraise raise value.with_traceback(tb) numba.errors.TypingError: Failed at nopython (nopython frontend) Internal error at <numba.typeinfer.ArgConstraint object at 0x7f88e1d2fb38>: --%<---------------------------------------------------------------------------- Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 577, in new_error_context yield File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 199, in call** assert ty.is_precise() AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 142, in propagate constraint(typeinfer) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 200, in call typeinfer.add_type(self.dst, ty, loc=self.loc) File "/home/zy/anaconda3/lib/python3.5/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 585, in new_error_context six.reraise(type(newerr), newerr, tb) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 659, in reraise raise value numba.errors.InternalError: [1] During: typing of argument at ./pysot/utils/statistics.py (104) --%<----------------------------------------------------------------------------
File "pysot/utils/statistics.py", line 104: def success_overlap(gt_bb, result_bb, n_frame): thresholds_overlap = np.arange(0, 1.05, 0.05) ^
This error may have been caused by the following argument(s):
* argument 1: Unsupported array dtype: object
This is not usually a problem with Numba itself but instead often caused by the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit: http://numba.pydata.org/numba-doc/dev/reference/pysupported.html and http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html
For more information about typing errors and how to debug them visit: http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message and traceback, along with a minimal reproducer at: https://github.com/numba/numba/issues/new
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "bin/eval.py", line 40, in trackers), desc='eval success', total=len(trackers), ncols=100): File "/home/zy/anaconda3/lib/python3.5/site-packages/tqdm/_tqdm.py", line 1022, in iter for obj in iterable: File "/home/zy/anaconda3/lib/python3.5/multiprocessing/pool.py", line 695, in next raise value numba.errors.TypingError: Failed at nopython (nopython frontend) Internal error at <numba.typeinfer.ArgConstraint object at 0x7f88e1d2fb38>: --%<---------------------------------------------------------------------------- Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 577, in new_error_context yield File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 199, in call assert ty.is_precise() AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 142, in propagate constraint(typeinfer) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 200, in call typeinfer.add_type(self.dst, ty, loc=self.loc) File "/home/zy/anaconda3/lib/python3.5/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 585, in new_error_context six.reraise(type(newerr), newerr, tb) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 659, in reraise raise value numba.errors.InternalError: [1] During: typing of argument at ./pysot/utils/statistics.py (104) --%<----------------------------------------------------------------------------
File "pysot/utils/statistics.py", line 104: def success_overlap(gt_bb, result_bb, n_frame): thresholds_overlap = np.arange(0, 1.05, 0.05) ^
This error may have been caused by the following argument(s):
* argument 1: Unsupported array dtype: object
This is not usually a problem with Numba itself but instead often caused by the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit: http://numba.pydata.org/numba-doc/dev/reference/pysupported.html and http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html
For more information about typing errors and how to debug them visit: http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message and traceback, along with a minimal reproducer at: https://github.com/numba/numba/issues/new
Is this problem solved? I also encountered the same problem.
Is this problem solved? I also encountered the same problem.
My friend Zhifan finally found out that you should run the ope_otb.py first. And then can you run the eval_OTB.py. Because the eval_OTB.py needs the files generated by ope_otb.py in directory /path/to/eval/test/OTB100. If you didn't comply with the order, the problem you said will happen.
My friend Zhifan finally found out that you should run the ope_otb.py first. And then can you run the eval_OTB.py. Because the eval_OTB.py needs the files generated by ope_otb.py in directory /path/to/eval/test/OTB100. If you didn't comply with the order, the problem you said will happen.
Hi! I meet the problem too. I still don't quite understand what you mean. You said run the ope_otb.py first, is the ope_otb.py means 'pysot-toolkit/pysot/evaluation/ope_benchmark.py ?
I think there is something wrong with args.trackers, it is a string and it should be list.
trackers = str(trackers)
trackers = trackers.split(',')
I think there is something wrong with args.trackers, it is a string and it should be list.
trackers = str(trackers) trackers = trackers.split(',')
I don't think it is the problem. I try to modify args.trackers as you said, but I still don't solve the numba error😂. ![Uploading tmp1.png…]()
I think there is something wrong with args.trackers, it is a string and it should be list.
trackers = str(trackers) trackers = trackers.split(',') I don't think it is the problem. I try to modify args.trackers as you said, but I still don't solve the numba error😂.
You can debug and see the "trackers", maybe there is no tracker name in it. I tested it on OTB100
Note whether the name of each sequence in the test set is consistent with the test result name (xxx. txt
), and whether the path is correct.
请问解决了吗
Same error here.
请问解决了吗
请问解决了吗,我还有这个问题
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
I met such error when I run 'eval.py',how can I solve it? Thanks!
python bin/eval.py --dataset_dir /home/zy/dataset/OTB100 --dataset OTB100 --tracker_result_dir /home/zy/code/pysot-toolkit/tracker/ --trackers SiamRPN++ C-COT DaSiamRPN ECO --num 4 --show_video_level --vis loading OTB100: 100%|█████████████████████████████████████| 100/100 [00:00<00:00, 300.43it/s, Board] eval success: 0%| | 0/4 [00:00<?, ?it/s]/home/zy/code/pysot-toolkit/tracker/SiamRPN++/basketball.txt /home/zy/code/pysot-toolkit/tracker/C-COT/basketball.txt /home/zy/code/pysot-toolkit/tracker/DaSiamRPN/basketball.txt /home/zy/code/pysot-toolkit/tracker/ECO/basketball.txt multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/multiprocessing/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "./pysot/evaluation/ope_benchmark.py", line 50, in eval_success successret[video.name] = success_overlap(gt_traj, tracker_traj, n_frame) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/dispatcher.py", line 349, in _compile_for_args error_rewrite(e, 'typing') File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/dispatcher.py", line 316, in error_rewrite reraise(type(e), e, None) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 658, in reraise raise value.with_traceback(tb) numba.errors.TypingError: Failed at nopython (nopython frontend) Internal error at <numba.typeinfer.ArgConstraint object at 0x7f88e1d2fb38>: --%<---------------------------------------------------------------------------- Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 577, in new_error_context yield File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 199, in call assert ty.is_precise() AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 142, in propagate constraint(typeinfer) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 200, in call typeinfer.add_type(self.dst, ty, loc=self.loc) File "/home/zy/anaconda3/lib/python3.5/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 585, in new_error_context six.reraise(type(newerr), newerr, tb) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 659, in reraise raise value numba.errors.InternalError: [1] During: typing of argument at ./pysot/utils/statistics.py (104) --%<----------------------------------------------------------------------------
File "pysot/utils/statistics.py", line 104: def success_overlap(gt_bb, result_bb, n_frame): thresholds_overlap = np.arange(0, 1.05, 0.05) ^
This error may have been caused by the following argument(s):
This is not usually a problem with Numba itself but instead often caused by the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit: http://numba.pydata.org/numba-doc/dev/reference/pysupported.html and http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html
For more information about typing errors and how to debug them visit: http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message and traceback, along with a minimal reproducer at: https://github.com/numba/numba/issues/new
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "bin/eval.py", line 40, in
trackers), desc='eval success', total=len(trackers), ncols=100):
File "/home/zy/anaconda3/lib/python3.5/site-packages/tqdm/_tqdm.py", line 1022, in iter
for obj in iterable:
File "/home/zy/anaconda3/lib/python3.5/multiprocessing/pool.py", line 695, in next
raise value
numba.errors.TypingError: Failed at nopython (nopython frontend)
Internal error at <numba.typeinfer.ArgConstraint object at 0x7f88e1d2fb38>:
--%<----------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 577, in new_error_context
yield
File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 199, in call
assert ty.is_precise()
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 142, in propagate constraint(typeinfer) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/typeinfer.py", line 200, in call typeinfer.add_type(self.dst, ty, loc=self.loc) File "/home/zy/anaconda3/lib/python3.5/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/errors.py", line 585, in new_error_context six.reraise(type(newerr), newerr, tb) File "/home/zy/anaconda3/lib/python3.5/site-packages/numba/six.py", line 659, in reraise raise value numba.errors.InternalError: [1] During: typing of argument at ./pysot/utils/statistics.py (104) --%<----------------------------------------------------------------------------
File "pysot/utils/statistics.py", line 104: def success_overlap(gt_bb, result_bb, n_frame): thresholds_overlap = np.arange(0, 1.05, 0.05) ^
This error may have been caused by the following argument(s):
This is not usually a problem with Numba itself but instead often caused by the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit: http://numba.pydata.org/numba-doc/dev/reference/pysupported.html and http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html
For more information about typing errors and how to debug them visit: http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message and traceback, along with a minimal reproducer at: https://github.com/numba/numba/issues/new