wayveai / fiery

PyTorch code for the paper "FIERY: Future Instance Segmentation in Bird's-Eye view from Surround Monocular Cameras"
https://wayve.ai/blog/fiery-future-instance-prediction-birds-eye-view
MIT License
556 stars 85 forks source link

AttributeError: 'FigureCanvasTkAgg' object has no attribute 'renderer' #14

Closed Ianpengg closed 3 years ago

Ianpengg commented 3 years ago

Hello, recently I found your great work and I want to try the "Visualisation" part locally to check the results, but after I run the command of python visualise.py --checkpoint ${CHECKPOINT_PATH} my terminal pop out an error like the following: image

I try to solve it by searching on google but it does not help, could you help me if you know how to solve it. Many thanks.

anthonyhu commented 3 years ago

I think it's because the machine you're connected to has no renderer. Could you try adding:

import matplotlib
matplotlib.use('Agg')

at the top of visualisation.py? That would use a non-interactive backend, and not render anything before saving the image file.

Ianpengg commented 3 years ago

It works, the problem is solved. Many thanks.

anthonyhu commented 3 years ago

No prob! :)