Skip to content
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

--semisupervised mode fails when no tracks are specified #119

Open
EricR86 opened this issue Dec 20, 2017 · 0 comments
Open

--semisupervised mode fails when no tracks are specified #119

EricR86 opened this issue Dec 20, 2017 · 0 comments
Labels
bug Something isn't working minor

Comments

@EricR86
Copy link
Member

EricR86 commented Dec 20, 2017

Original report (BitBucket issue) by Francis Nguyen (Bitbucket: Francis Nguyen).


When running segway train with --supervised, but without specifying --tracks-from, Segway v2.0.2 crashes with the following error:

Traceback (most recent call last):
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/bin/segway", line 11, in <module>
    sys.exit(main())
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/segway/run.py", line 3743, in main
    return runner()
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/segway/run.py", line 3508, in __call__
    self.run(*args, **kwargs)
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/segway/run.py", line 3458, in run
    self.save_gmtk_input()
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/segway/run.py", line 2053, in save_gmtk_input
    self.save_structure()
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/segway/run.py", line 1958, in save_structure
    self.clobber)
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/segway/_util.py", line 156, in __call__
    return save_template(filename, self.resource_name, self.make_mapping(),
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/segway/structure.py", line 89, in make_mapping
    max_num_datapoints_track = num_datapoints.max()
  File "/mnt/work1/users/home2/fnguyen/miniconda3/envs/py2.7.3/lib/python2.7/site-packages/numpy/core/_methods.py", line 26, in _amax
    return umr_maximum(a, axis, None, out, keepdims)
ValueError: zero-size array to reduction operation maximum which has no identity

Since --tracks-from does not have to be specified when not using --semisupervised, this appears to be a bug.

Current workaround is just to remember to specify --tracks-from when using --semisupervised.

@EricR86 EricR86 added minor bug Something isn't working labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

1 participant