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

Error in test_ycb and test_lm #78

Open
HannahHaensen opened this issue Jun 22, 2022 · 2 comments
Open

Error in test_ycb and test_lm #78

HannahHaensen opened this issue Jun 22, 2022 · 2 comments

Comments

@HannahHaensen
Copy link

HannahHaensen commented Jun 22, 2022

After downloading and installing I just run the demo and test files.

I encounter the following error:

Traceback (most recent call last):
  File "train_lm.py", line 686, in <module>
    train()
  File "train_lm.py", line 667, in train
    val_loss, res = trainer.eval_epoch(
  File "train_lm.py", line 404, in eval_epoch
    seg_res_fn += '_%s%.2f' % (k, v)
TypeError: must be real number, not list

#50 in this issue there is no fix provided

??? is this a valid fix ??? :
seg_res_fn += '_%s%.2f' % (k, np.array(v).mean() * 100)

cause otherwise the filename of the log file will be endlessly ?

@nachi9211
Copy link

This is what I am implementing while dealing with this during both training and testing phases.
However is anyone can provide a definite answer or explanation it would help. I do not understand the dimensions of involved list personally.

@2022Nison
Copy link

maby you can edit on train.py,you can try to edit 'print(k,v[0])' instead of 'print(k, v)'

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

3 participants