amazon-science / earth-forecasting-transformer

Official implementation of Earthformer
Apache License 2.0
359 stars 61 forks source link

main thread is not in main loop #22

Closed fizzking closed 1 year ago

fizzking commented 1 year ago

I have tried to train earthformer on Nbody, but this error occurs, what should I do? image image

,

gaozhihan commented 1 year ago

One possible cause is the use of matplotlib. Could you try to add matplotlib.use('Agg') where the package matplotlib is imported, e.g.:

import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot

You may find more related discussions in this link.

fizzking commented 1 year ago

是的

One possible cause is the use of matplotlib. Could you try to add matplotlib.use('Agg') where the package matplotlib is imported, e.g.:

import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot

You may find more related discussions in this link. Thanks a lot!I finally solved the problem according to your instructions!Since the py file is read-only, I open it as a document to modify it

gaozhihan commented 1 year ago

Great. Close as it has been solved. Please feel free to reopen / create new issues if you encounter any problems using the code.