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

AttributeError: 'FigureCanvasAgg' object has no attribute 'tostring_rgb' #2411

Open
Mehmet2407 opened this issue Dec 14, 2024 · 5 comments
Open

Comments

@Mehmet2407
Copy link

Whenever I press "train model" it goes up to 5.3 seconds and then says error on the progress bar. The command window shows this error in the last line. I have no idea what's wrong

@kunibald413
Copy link

same here

@Sol-III-Observer
Copy link

+1

@kunibald413
Copy link

kunibald413 commented Dec 15, 2024

i think this might be only related to tensorboard logs
if you don't need them you can just comment out the code or skip it

in infer/lib/train/utils.py find the summarize function and try catch it

def summarize(
    writer,
    global_step,
    scalars={},
    histograms={},
    images={},
    audios={},
    audio_sampling_rate=22050,
):
    try:
        for k, v in scalars.items():
            writer.add_scalar(k, v, global_step)
        for k, v in histograms.items():
            writer.add_histogram(k, v, global_step)
        for k, v in images.items():
            writer.add_image(k, v, global_step, dataformats="HWC")
        for k, v in audios.items():
            writer.add_audio(k, v, global_step, audio_sampling_rate)
    except Exception as e:
        print(f"Exception when summarizing  {e}. Skip, we don't care!")

@5uperninj4
Copy link

+1. Looking for solution

@xpdd123
Copy link

xpdd123 commented Dec 20, 2024

pip install matplotlib==3.7.0,
It work for me

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

5 participants