yolov4-tf2 icon indicating copy to clipboard operation
yolov4-tf2 copied to clipboard

训练到20epo的时候报错了

Open wypbin opened this issue 3 years ago • 6 comments

Exception ignored in: <bound method Image.del of <tkinter.PhotoImage object at 0x7fc45c92f0b8>> Traceback (most recent call last): File "/usr/lib/python3.6/tkinter/init.py", line 3507, in del self.tk.call('image', 'delete', self.name) RuntimeError: main thread is not in main loop

wypbin avatar Aug 14 '21 23:08 wypbin

啊?这个完全看不出来欸,重新开始一下吧

bubbliiiing avatar Aug 15 '21 14:08 bubbliiiing

有出现了。。。

Epoch 35/50 114/114 [==============================] - 110s 966ms/step - loss: 2.9490 - val_loss: 3.3958

Epoch 00035: ReduceLROnPlateau reducing learning rate to 0.0001250000059371814. Epoch 36/50 12/114 [==>...........................] - ETA: 1:31 - loss: 2.8962Exception ignored in: <bound method Image.del of <tkinter.PhotoImage object at 0x00000228B4204710>> Traceback (most recent call last): File "D:\anaconda\envs\tf2.2\lib\tkinter_init_.py", line 3507, 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 0x00000228B4204550>> Traceback (most recent call last): File "D:\anaconda\envs\tf2.2\lib\tkinter_init_.py", line 3507, in del self.tk.call('image', 'delete', self.name) RuntimeError: main thread is not in main loop Exception ignored in: <bound method Variable.del of <tkinter.IntVar object at 0x00000228B42049B0>> Traceback (most recent call last): File "D:\anaconda\envs\tf2.2\lib\tkinter_init_.py", line 332, in del if self._tk.getboolean(self.tk.call("info", "exists", self.name)): RuntimeError: main thread is not in main loop Exception ignored in: <bound method Image.del of <tkinter.PhotoImage object at 0x00000228B4204A58>> Traceback (most recent call last): File "D:\anaconda\envs\tf2.2\lib\tkinter_init.py", line 3507, in del self.tk.call('image', 'delete', self.name) RuntimeError: main thread is not in main loop Exception ignored in: <bound method Variable.del of <tkinter.IntVar object at 0x00000228B4204B70>> Traceback (most recent call last): File "D:\anaconda\envs\tf2.2\lib\tkinter_init.py", line 332, in del if self._tk.getboolean(self._tk.call("info", "exists", self._name)): RuntimeError: main thread is not in main loop

wypbin avatar Aug 16 '21 02:08 wypbin

0 0 你解决了吗,我看着像是多线程的问题,你开了多线程吗?workers不等于0? 可以尝试eager模式噢

bubbliiiing avatar Aug 23 '21 14:08 bubbliiiing

我也遇到类似的问题,但是我的问题忘记了保存。

jcluo1994 avatar Nov 05 '21 01:11 jcluo1994

Tcl_AsyncDelete: async handler deleted by the wrong thread最后报了一个这样的错误

jcluo1994 avatar Nov 05 '21 01:11 jcluo1994

加个这个试试

import matplotlib #import matplotlib.pyplot as plt matplotlib.use('Agg') # from matplotlib import pyplot as plt

bubbliiiing avatar Nov 08 '21 16:11 bubbliiiing