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

eval_box raises exception with demonstration models #7

Closed
rodrigob opened this issue May 11, 2015 · 1 comment
Closed

eval_box raises exception with demonstration models #7

rodrigob opened this issue May 11, 2015 · 1 comment

Comments

@rodrigob
Copy link
Contributor

Following the readme steps, running eval_box.py also raises an exception.

python eval_box.py test.txt ../models/lpo_VOC_0.1.dat
Traceback (most recent call last):
  File "eval_box.py", line 57, in <module>
    bo,pool_s = evaluateBox( prop, over_segs, boxes, name='(tst)' )
  File "eval_box.py", line 43, in evaluateBox
    print( "LPO %05s & %d & %0.3f & %0.3f & %0.3f & %0.3f & %0.3f \\\\"%(name,np.nanmean(pool_s),np.mean(bo),np.mean(bo>=0.5), np.mean(bo>=0.7), np.mean(bo>=0.9), np.mean(2*np.maximum(bo-0.5,0)) ) )
UnboundLocalError: local variable 'pool_s' referenced before assignment

both bo, pool_s are dangerously non-initialized.

I guess something else is off, but I cannot quite figure out what, since none of the scripts seems to work as expected.

@rodrigob
Copy link
Contributor Author

Fixing the data_dir path fixed this issue (as indicated in #6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant