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

AssertionError: name should not be specified with multiple labels or lines #810

Open
theshy456 opened this issue Jul 28, 2021 · 1 comment

Comments

@theshy456
Copy link

AssertionError Traceback (most recent call last)
in
335 # start
336 if name == 'main':
--> 337 main()

in main()
72 solver = Solver(args)
73 start_time = time.time()
---> 74 solver.run()
75 end_time = time.time()
76 print('time cost: {:.2f}min'.format((end_time - start_time)/60))

in run(self)
301 legend=['train_acc', 'test_acc']
302 ),
--> 303 name="acc"
304 )
305

~/app/anaconda3/envs/lv/lib/python3.6/site-packages/visdom/init.py in wrapped_f(*args, **kwargs)
387 args = (_to_numpy(arg) for arg in args)
388 kwargs = {k: _to_numpy(v) for (k, v) in kwargs.items()}
--> 389 return f(*args, **kwargs)
390
391 return wrapped_f

~/app/anaconda3/envs/lv/lib/python3.6/site-packages/visdom/init.py in line(self, Y, X, win, env, opts, update, name)
1713
1714 return self.scatter(X=linedata, Y=labels, opts=opts, win=win, env=env,
-> 1715 update=update, name=name)
1716
1717 @pytorch_wrap

~/app/anaconda3/envs/lv/lib/python3.6/site-packages/visdom/init.py in wrapped_f(*args, **kwargs)
387 args = (_to_numpy(arg) for arg in args)
388 kwargs = {k: _to_numpy(v) for (k, v) in kwargs.items()}
--> 389 return f(*args, **kwargs)
390
391 return wrapped_f

~/app/anaconda3/envs/lv/lib/python3.6/site-packages/visdom/init.py in scatter(self, X, Y, win, env, opts, update, name)
1519 labels = np.unique(Y.astype(int, copy=False))
1520 assert len(labels) == 1 or name is None,
-> 1521 'name should not be specified with multiple labels or lines'
1522 K = int(Y.max()) # largest label
1523 else:

AssertionError: name should not be specified with multiple labels or lines

@AbhijithGanesh
Copy link

Can you please specify more about the issue you're facing? This is the error log shown by the compiler @theshy456

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

2 participants