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

ValueError: x and y must have same first dimension, but have shapes (0,) and (1,) #351

Open
1632325673 opened this issue Jun 10, 2023 · 0 comments

Comments

@1632325673
Copy link

Evaluation:
0it [00:00, ?it/s]
[div2k x2] PSNR: nan (Best: nan @epoch 1)
Forward: 1.97s

Saving...
Traceback (most recent call last):
File "main.py", line 33, in
main()
File "main.py", line 28, in main
t.test()
File "/data2/qinfl/EDSR/src/trainer.py", line 123, in test
self.ckp.save(self, epoch, is_best=(best[1][0, 0] + 1 == epoch))
File "/data2/qinfl/EDSR/src/utility.py", line 97, in save
self.plot_psnr(epoch)
File "/data2/qinfl/EDSR/src/utility.py", line 124, in plot_psnr
label='Scale {}'.format(scale)
File "/data2/qinfl/YES/envs/EDSR1/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2842, in plot
**({"data": data} if data is not None else {}), **kwargs)
File "/data2/qinfl/YES/envs/EDSR1/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 1743, in plot
lines = [*self._get_lines(*args, data=data, **kwargs)]
File "/data2/qinfl/YES/envs/EDSR1/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 273, in call
yield from self._plot_args(this, kwargs)
File "/data2/qinfl/YES/envs/EDSR1/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 399, in _plot_args
raise ValueError(f"x and y must have same first dimension, but "
ValueError: x and y must have same first dimension, but have shapes (0,) and (1,)

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