Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot reshape array of size 23994 into shape #1236

Open
gravitydeep opened this issue Jun 14, 2022 · 1 comment
Open

cannot reshape array of size 23994 into shape #1236

gravitydeep opened this issue Jun 14, 2022 · 1 comment
Labels

Comments

@gravitydeep
Copy link

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.

Crash reports MUST be included when reporting bugs.

Describe the bug
During the training with dlight when I switch from graph to preview I have an alert but it does not stop the training so I wanted to point it out to you maybe it is a bug?

Warning

xception in Tkinter callback
Traceback (most recent call last):
File "/home/cedric/miniconda3/envs/faceswap/lib/python3.9/tkinter/init.py", line 1892, in call
return self.func(*args)
File "/home/cedric/Lab/faceswap/lib/gui/display.py", line 186, in _on_tab_change
selected_object.on_tab_select()
File "/home/cedric/Lab/faceswap/lib/gui/display_command.py", line 248, in on_tab_select
self._update_page()
File "/home/cedric/Lab/faceswap/lib/gui/display_page.py", line 273, in _update_page
self.load_display()
File "/home/cedric/Lab/faceswap/lib/gui/display_page.py", line 285, in load_display
self.display_item_process()
File "/home/cedric/Lab/faceswap/lib/gui/display_command.py", line 384, in display_item_process
loss_keys = self.display_item.get_loss_keys(Session.session_ids[-1])
File "/home/cedric/Lab/faceswap/lib/gui/analysis/stats.py", line 254, in get_loss_keys
in self._tb_logs.get_loss(session_id=session_id).items()}
File "/home/cedric/Lab/faceswap/lib/gui/analysis/event_reader.py", line 490, in get_loss
data = self._cache.get_data(idx, "loss")
File "/home/cedric/Lab/faceswap/lib/gui/analysis/event_reader.py", line 362, in get_data
val = {metric: np.frombuffer(zlib.decompress(data[metric]),
ValueError: cannot reshape array of size 23994 into shape (12023,2)

Desktop (please complete the following information):

  • ubuntu 22.04
  • Python Version 3.9
  • Conda Version 4.12

Crash Report
No crash report

@torzdf
Copy link
Collaborator

torzdf commented Jun 14, 2022

This is a bug I'm aware of. It only affects display of graph/analysis during a training session though. It doesn't break training.

@torzdf torzdf added the bug label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants