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

TypeError: got an unexpected keyword argument 'quality' #12

Open
yingfansong opened this issue Feb 16, 2023 · 1 comment
Open

TypeError: got an unexpected keyword argument 'quality' #12

yingfansong opened this issue Feb 16, 2023 · 1 comment

Comments

@yingfansong
Copy link

Traceback (most recent call last):
File "train.py", line 80, in
main()
File "train.py", line 76, in main
train(mixpoet, tool, hps)
File "train.py", line 53, in train
mix_trainer.train(mixpoet, tool)
File "C:\Users\yingf\Desktop\MixPoet\codes\mix_trainer.py", line 304, in train
File "C:\Users\yingf\Desktop\MixPoet\codes\mix_trainer.py", line 247, in run_train
logger.draw_curves()
File "C:\Users\yingf\Desktop\MixPoet\codes\logger.py", line 422, in draw_curves
fig.savefig(self.fig_path+"/latent_distance.png", dpi=300, quality=100, bbox_inches="tight")
File "C:\Users\yingf\anaconda3\envs\MixPoet\lib\site-packages\matplotlib\figure.py", line 3274, in savefig
self.canvas.print_figure(fname, **kwargs)
File "C:\Users\yingf\anaconda3\envs\MixPoet\lib\site-packages\matplotlib\backend_bases.py", line 2338, in print_figure
result = print_method(
File "C:\Users\yingf\anaconda3\envs\MixPoet\lib\site-packages\matplotlib\backend_bases.py", line 2204, in
print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
File "C:\Users\yingf\anaconda3\envs\MixPoet\lib\site-packages\matplotlib_api\deprecation.py", line 385, in wrapper
arguments = signature.bind(*inner_args, **inner_kwargs).arguments
File "C:\Users\yingf\anaconda3\envs\MixPoet\lib\inspect.py", line 3037, in bind
return self._bind(args, kwargs)
File "C:\Users\yingf\anaconda3\envs\MixPoet\lib\inspect.py", line 3026, in _bind
raise TypeError(
TypeError: got an unexpected keyword argument 'quality'

@yingfansong yingfansong changed the title 这有个bug TypeError: got an unexpected keyword argument 'quality' Feb 16, 2023
@2119319622
Copy link

matplotLib的版本有问题,下载程推荐的那个最低版本试试

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