我在训练时一直出现这个问题,在网上找到的答案说是matplotlib.pyplot造成的问题 可我在我的代码里面环境里面是有这个matplotlib包的 但是我在代码里面没找到这个包 不管是在train.py和__init__.py都没有找到这个包的导入 求大佬告知什么原因 提示错误在下面:
Traceback (most recent call last):
File "D:\Anacoda\Anaconda\envs\Deeplab\lib\tkinter_init.py", line 3501, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <bound method Image.__del__ of <tkinter.PhotoImage object at 0x0000026701F0E160>>
Traceback (most recent call last):
File "D:\Anacoda\Anaconda\envs\Deeplab\lib\tkinter_init.py", line 3501, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <bound method Image.del__ of <tkinter.PhotoImage object at 0x000002670115AB70>>
Traceback (most recent call last):
File "D:\Anacoda\Anaconda\envs\Deeplab\lib\tkinter_init_.py", line 3501, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <bound method Image.__del__ of <tkinter.PhotoImage object at 0x0000026701CA1518>>
Traceback (most recent call last):
File "D:\Anacoda\Anaconda\envs\Deeplab\lib\tkinter__init.py", line 3501, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <bound method Image.del__ of <tkinter.PhotoImage object at 0x0000026701CBCB00>>
Traceback (most recent call last):
File "D:\Anacoda\Anaconda\envs\Deeplab\lib\tkinter_init_.py", line 3501, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <bound method Image.__del__ of <tkinter.PhotoImage object at 0x0000026701D55160>>
Traceback (most recent call last):
File "D:\Anacoda\Anaconda\envs\Deeplab\lib\tkinter__init.py", line 3501, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Tcl_AsyncDelete: async handler deleted by the wrong thread