toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

object of type 'Mask' has no len()

Open 201722111112027 opened this issue 10 months ago • 3 comments

Hello, executing self_ trax = trax.Server([trax.Region.RECTANGLE], [trax.Image.PATH], channels, metadata={"vot": "python"}) Until this section of code, there have been continuous errors: object of type 'Mask' has no len()

object of type 'Mask' has no len() Traceback (most recent call last): File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/vot/utilities/cli.py", line 388, in main do_evaluate(args) File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/vot/utilities/cli.py", line 182, in do_evaluate run_experiment(experiment, tracker, workspace.dataset, config.force, config.persist) File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/vot/experiment/init.py", line 160, in run_experiment experiment.execute(tracker, sequence, force=force, callback=progress) File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/vot/experiment/multistart.py", line 78, in execute _, properties, elapsed = runtime.initialize(proxy.frame(0), self._get_initialization(proxy, 0)) File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/vot/tracker/trax.py", line 429, in initialize return self._process.initialize(frame, region, tproperties) File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/vot/tracker/trax.py", line 256, in initialize region, properties, elapsed = self._client.initialize(tlist, tregion, properties) File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/trax/client.py", line 178, in initialize tobjects = wrap_objects(objects) File "/home/host/anaconda3/envs/vot/lib/python3.8/site-packages/trax/init.py", line 374, in wrap_objects tlist = ObjectListWrapper(trax_object_list_create(len(objects))) TypeError: object of type 'Mask' has no len()

May I ask how to solve it?

201722111112027 avatar Mar 26 '25 03:03 201722111112027

Hello, please tell us more, which dataset and stack were you using, what is OS? The tracker is implemented in Python from what I have seen?

lukacu avatar Mar 26 '25 07:03 lukacu

they @.***

 Yes, my tracker is implemented using Python. I am using the vot20202 dataset, and the stack data is as follows: title: VOT-ST2020 challenge dataset: vot:vot-st2020 url: http://www.votchallenge.net/vot2020/ experiments:   baseline:     type: multistart     analyses:       - type: multistart_eao_score         name: eaoscore         low: 115         high: 755       - type: multistart_eao_curve         name: eaocurve         high: 755       - type: multistart_average_ar         name: ar   realtime:     type: multistart     realtime:       grace: 3     analyses:       - type: multistart_eao_score         name: eaoscore         low: 115         high: 755       - type: multistart_eao_curve         name: eaocurve         high: 755       - type: multistart_average_ar         name: ar   unsupervised:     type: unsupervised     repetitions: 1     analyses:       - type: average_accuracy         name: accuracy         burnin: 1

I am using the Linux operating system, Ubuntu 22.04.  The program is executing to self._ trax = trax.Server([trax.Region.RECTANGLE], [trax.Image.PATH], channels, metadata={"vot": "python"}) During this period, there was an error in the console output. The incorrect content is:object of type 'Mask' has no len().

------------------ 原始邮件 ------------------ 发件人: "votchallenge/toolkit" @.>; 发送时间: 2025年3月26日(星期三) 下午3:51 @.>; @.@.>; 主题: Re: [votchallenge/toolkit] object of type 'Mask' has no len() (Issue #135)

Hello, please tell us more, which dataset and stack were you using, what is OS? The tracker is implemented in Python from what I have seen?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***> lukacu left a comment (votchallenge/toolkit#135)

Hello, please tell us more, which dataset and stack were you using, what is OS? The tracker is implemented in Python from what I have seen?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

201722111112027 avatar Mar 26 '25 08:03 201722111112027

Hello, please tell us more, which dataset and stack were you using, what is OS? The tracker is implemented in Python from what I have seen?

Yes, my tracker is implemented using Python. I am using the vot20202 dataset, and the stack data is as follows: title: VOT-ST2020 challenge dataset: vot:vot-st2020 url: http://www.votchallenge.net/vot2020/ experiments: baseline: type: multistart analyses: - type: multistart_eao_score name: eaoscore low: 115 high: 755 - type: multistart_eao_curve name: eaocurve high: 755 - type: multistart_average_ar name: ar realtime: type: multistart realtime: grace: 3 analyses: - type: multistart_eao_score name: eaoscore low: 115 high: 755 - type: multistart_eao_curve name: eaocurve high: 755 - type: multistart_average_ar name: ar unsupervised: type: unsupervised repetitions: 1 analyses: - type: average_accuracy name: accuracy burnin: 1

I am using the Linux operating system, Ubuntu 22.04.  The program is executing to self._ trax = trax.Server([trax.Region.RECTANGLE], [trax.Image.PATH], channels, metadata={"vot": "python"}) During this period, there was an error in the console output. The incorrect content is:object of type 'Mask' has no len().

I really need the results on this dataset, thank you very much for your help.

201722111112027 avatar Mar 27 '25 00:03 201722111112027