faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

Tkinter Exception when trying to open the graph tab or analysis tab only when the training is just started

Open AhmedAhmedEG opened this issue 3 years ago • 0 comments

Note: For general usage questions and help, please use either our FaceSwap Forum or FaceSwap Discord server. General usage questions are liable to be closed without response.

Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\PC\MiniConda3\envs\faceswap\lib\tkinter\__init__.py", line 1892, in __call__ return self.func(*args) File "D:\faceswap\lib\gui\display.py", line 186, in _on_tab_change selected_object.on_tab_select() File "D:\faceswap\lib\gui\display_command.py", line 254, in on_tab_select self._update_page() File "D:\faceswap\lib\gui\display_page.py", line 273, in _update_page self.load_display() File "D:\faceswap\lib\gui\display_page.py", line 285, in load_display self.display_item_process() File "D:\faceswap\lib\gui\display_command.py", line 388, in display_item_process for key in self.display_item.get_loss_keys(Session.session_ids[-1]) File "D:\faceswap\lib\gui\analysis\stats.py", line 245, in get_loss_keys retval = loss_keys[session_id] KeyError: 5

This exception happens when I open the graph tab or the analysis tab while training with a non-default batch size, for 120, it always throws the exception, if 64, it works with a very low chance, for 32, 50% of times works, for 16, it always works and the exception never accuors.

after starting/resuming the training, if I left the preview windows open for a long time, I never face the exception, all menus works fine.

AhmedAhmedEG avatar Jun 20 '21 20:06 AhmedAhmedEG