votchallenge / toolkit

The official VOT Challenge evaluation and analysis toolkit
http://www.votchallenge.net/
GNU General Public License v3.0
158 stars 46 forks source link

TypeError: 'CoerceContext' object is not subscriptable #43

Open xingpingdong opened 2 years ago

xingpingdong commented 2 years ago

when I try to evaluate the default tracker NCC and run the following command

vot evaluate --workspace '/home/dxp/code/vot-test/workspace2' NCCPython I got the following errors.

Traceback (most recent call last): File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/utilities/cli.py", line 388, in main do_evaluate(args) File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/utilities/cli.py", line 159, in do_evaluate workspace = Workspace.load(config.workspace) File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/workspace/init.py", line 138, in load return Workspace(directory, config) File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/workspace/init.py", line 150, in init super().init(kwargs) File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/init.py", line 262, in init value = afield.coerce(avalue, CoerceContext(parent=self)) File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/containers.py", line 134, in coerce data = [self._contains.coerce(x, CoerceContext(parent=parent, key=i)) for i, x in enumerate(value)] File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/containers.py", line 134, in data = [self._contains.coerce(x, CoerceContext(parent=parent, key=i)) for i, x in enumerate(value)] File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/attributee/primitives.py", line 104, in coerce return self._transformer(to_string(value), ctx) File "/home/dxp/anaconda3/envs/siamban/lib/python3.7/site-packages/vot/workspace/init.py", line 54, in registry = List(String(transformer=lambda x, ctx: normalize_path(x, ctx["parent"].directory))) TypeError: 'CoerceContext' object is not subscriptable

It seems a bug in the code. Could you help me?

lukacu commented 2 years ago

Yes, it seems that there are a few issues because the newest attributee library version is used. You can try to downgrade the library version, probably to 0.1.3 .

xingpingdong commented 2 years ago

Thank you. I fixed it by setting attributtee==0.1.3.

lukacu commented 2 years ago

Well, it is not a fix, more of a workaround. I will reopen the issue and only close it once we fix it for the new version.

tahiira commented 2 years ago

Yes, it seems that there are a few issues because the newest attributee library version is used. You can try to downgrade the library version, probably to 0.1.3 .

Hi, I faced with this error, how can I downgrade vot-toolkit-python

xingpingdong commented 2 years ago

Maybe you can try pip install attributtee==0.1.3

tahiira commented 2 years ago

Maybe you can try pip install attributtee==0.1.3

Thank you, but the error didnt resolve. I use python3.6 with cuda 11.

xingpingdong commented 2 years ago

Maybe you need to update your python. I used python 3.7

T.H @.***>于2022年3月5日 周六11:19写道:

Maybe you can try pip install attributtee==0.1.3

Thank you, but the error didnt resolve. I use python3.6 with cuda 11.

— Reply to this email directly, view it on GitHub https://github.com/votchallenge/toolkit/issues/43#issuecomment-1059711583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIDAM4MXGRTUT354NXDADQLU6MDJDANCNFSM5O53HS2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you modified the open/close state.Message ID: @.***>