-
Notifications
You must be signed in to change notification settings - Fork 647
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
[BUG] AttributeError: 'ExperimentWriter' object has no attribute 'add_figure'
#1256
Comments
Had the same issue, somehow fixed by changing these package versions:
|
Unfortunately when I set the PyTorch Lightning to 1.9.2, it complains "AttributeError: 'tuple' object has no attribute 'items'". According to the fix to this issue, the Lightning should be 1.9.0 to avoid this "tuple" problem. Now the problem becomes circular, and no solution yet. :( |
Hi, is there still no solution to the circular problem? |
This could be because you are using a different logger. |
Hi, is there still no solution to the circular problem? |
@xhxlab This workaround worked for me. I pip installed tensorboard and created my own initialized tensorboardlogger and specified it in the trainer object.
|
I was able to fix the same error by installing tensorboard via pip. PL seems to check for the tensorboard installation. |
i solve this problem by following steps: in base_model.py, to import SummaryWriter. just like: |
I realise this thread is a little dated, but I've just come across the same issue. I'm going to submit a bugfix PR. |
Thanks, @ewth! I presume the bug is still there on 1.1.0 then? |
AttributeError: 'ExperimentWriter' object has no attribute 'add_figure'
It is indeed @fkiraly. I went to create a bug fix PR but having some issues with poetry and pre-commit. Working to get my local env setup and will issue the PR. |
@ewth, could you kindly open a pull request? Then I might also advise with the pre-commit, we have removed poetry from the dev tools. |
…_figure' This fixes the AttributeError failure by checking that `add_figure` exists before attempting to call it. See sktime#1256
@fkiraly done :) There's a similar error for
I've addressed it in the same PR, but can split it off into its own issue if you would prefer. |
For additional context, this bug occurs if
To replicate:
|
@fkiraly my apologies, there are actually some differences between this and what I've attempted to fix. The error is very similar to what I'm experiencing and so I jumped on it, but for my situation:
Should I create a new bug report and remove the current PR? |
@ewth, good question. I think we should keep the current PR as it can deal with both issues, but abstract the check into a I left some comments there, on #1694 |
Stuck on my first few tutorials of PyTorch Forecasting because of a few bugs. I've sidestepped a
KeyError: 'radam_buffer'
error by introducing an optimizer into the model building from_dataset(). Would greatly appreciate some help!Expected behavior
When calling fit on the model (using the exact code from the DeepAR tutorial), expected to fit the model and see a model summary according to the tutorial.
Actual behavior
However, error encountered after a single plot is produced and the following:
Code to reproduce the problem
Paste the command(s) you ran and the output. Including a link to a colab notebook will speed up issue resolution.
If there was a crash, please include the traceback here.
The code used to initialize the TimeSeriesDataSet and model should be also included.
TRACEBACK:
CODE TO REPRODUCE:
The text was updated successfully, but these errors were encountered: