pysot-toolkit icon indicating copy to clipboard operation
pysot-toolkit copied to clipboard

numba error when running ‘eval.py'

Open zhangyanabc opened this issue 5 years ago • 14 comments

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 success_ret_[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

zhangyanabc avatar May 20 '19 13:05 zhangyanabc

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 success_ret_[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.

ZZXin avatar May 27 '19 11:05 ZZXin

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 success_ret_[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.

Dtappledoghuati avatar Sep 25 '19 06:09 Dtappledoghuati

Is this problem solved? I also encountered the same problem.

Neptuneland avatar Nov 29 '19 09:11 Neptuneland

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.

Neptuneland avatar Nov 30 '19 01:11 Neptuneland

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 ?

smile-hahah avatar Dec 24 '19 02:12 smile-hahah

I think there is something wrong with args.trackers, it is a string and it should be list.

trackers = str(trackers)
trackers = trackers.split(',')

1522454735 avatar Mar 10 '20 15:03 1522454735

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… tmp2

LincanLi98 avatar Mar 24 '20 13:03 LincanLi98

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

1522454735 avatar Mar 27 '20 09:03 1522454735

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.

bluoluo avatar Apr 09 '20 16:04 bluoluo

请问解决了吗

16534165 avatar Dec 15 '20 11:12 16534165

Same error here.

utkugulgec avatar Jan 03 '21 02:01 utkugulgec

请问解决了吗

bibixiuxiuxiu avatar Jan 31 '21 16:01 bibixiuxiuxiu

请问解决了吗,我还有这个问题

zuzi2015 avatar Mar 01 '22 10:03 zuzi2015

这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

smile-hahah avatar Mar 01 '22 10:03 smile-hahah