This forum is for reporting errors with the Extraction process. If you want to get tips, or better understand the Extract process, then you should look in the Extract Discussion forum.
Please mark any answers that fixed your problems so others can find the solutions.
Yeah thats strange it didn't work before as I followed the installation process correctly. Must be an M1 Mac problem, and yes at least it's solved now. Only one more problem to solve... I can't save alignments when using the manual tool. I get the following error message - something to do with "ValueError"
2023-04-29 01:34:56.397 python[1538:22971] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_bundleIdentifierWithReply:) block performed very slowly (7.64 secs).
Exception in Tkinter callback
Traceback (most recent call last):
File "/Users/User1/miniforge3/envs/faceswap/lib/python3.9/tkinter/__init__.py", line 1892, in __call__
return self.func(*args)
File "/Users/User1/faceswap/tools/manual/detected_faces.py", line 144, in save
self._children["io"].save()
File "/Users/User1/faceswap/tools/manual/detected_faces.py", line 286, in save
for idx, faces in zip(frames, np.array(self._frame_faces)[np.array(frames)]):
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6771,) + inhomogeneous part.
Yeah sure and thank you so much! I've uploaded them to my google drive for you down the bottom - It's only an 11 second video that I wanted to manually go through and make sure all the faces were extracted properly. Me and my mate wanted to swap his face to it as a joke lol. The manual tool opens and works correctly, but whenever I try to save the alignments file after editing it that value error pops up. The first few shots at the start of the video are obstructed and doesn't pick up any faces, so I used the 'copy next alignment' feature to get them. I could simply crop out that part of the video to solve it, but if I ever work on a longer project in the future the manual tool would definitely be needed. I hope this error can be fixed so if you find any possible solutions please let me know!
05/09/2023 19:27:20 INFO Backing up original alignments to '/home/matt/Downloads/Mike O'hearn meme template_alignments_20230509_192720.fsa'
05/09/2023 19:27:20 INFO Writing alignments to: '/home/matt/Downloads/Mike O'hearn meme template_alignments.fsa'
05/09/2023 19:27:54 INFO Backing up original alignments to '/home/matt/Downloads/Mike O'hearn meme template_alignments_20230509_192754.fsa'
05/09/2023 19:27:54 INFO Writing alignments to: '/home/matt/Downloads/Mike O'hearn meme template_alignments.fsa'
05/09/2023 19:28:07 INFO Backing up original alignments to '/home/matt/Downloads/Mike O'hearn meme template_alignments_20230509_192807.fsa'
05/09/2023 19:28:07 INFO Writing alignments to: '/home/matt/Downloads/Mike O'hearn meme template_alignments.fsa'
Once the gui opens up, I head over to the manual tool section and input the path locations of the alignments file and video.
Run the manual script
Once the manual tool window pops up:
Go to frame 2 (last frame at beginning without alignment) and copy the next alignment
Save
Straight away as I save anything that annoying error pops up. I've tried running the manual tool directly from the terminal, but again chucks out this:
1) A race condition of some kind. I hope not, as debugging this will be next to impossible, but it is also the most likely
2) An issue with a specific version of an installed library. Please provide the output from the GUI: Help > Output System Information so I can check this
3) An issue with the Apple Silicon Tensorflow plugin. This seems unlikely as I would not expect this kind of behaviour, but it is possible.
06/27/2023 20:37:15 ERROR Got Exception on main handler:
Traceback (most recent call last):
File "C:\Users\e4978\faceswap\lib\cli\launcher.py", line 225, in execute_script
process.process()
File "C:\Users\e4978\faceswap\scripts\extract.py", line 178, in process
extract.process()
File "C:\Users\e4978\faceswap\scripts\extract.py", line 702, in process
self._run_extraction()
File "C:\Users\e4978\faceswap\scripts\extract.py", line 726, in _run_extraction
for idx, extract_media in enumerate(tqdm(self._extractor.detected_faces(),
File "C:\Users\e4978\MiniConda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1178, in __iter__
for obj in iterable:
File "C:\Users\e4978\faceswap\plugins\extract\pipeline.py", line 293, in detected_faces
self._check_and_raise_error()
File "C:\Users\e4978\faceswap\plugins\extract\pipeline.py", line 777, in _check_and_raise_error
plugin.check_and_raise_error()
File "C:\Users\e4978\faceswap\plugins\extract\_base.py", line 398, in check_and_raise_error
thread.check_and_raise_error()
File "C:\Users\e4978\faceswap\lib\multithreading.py", line 172, in check_and_raise_error
raise error[1].with_traceback(error[2])
File "C:\Users\e4978\faceswap\lib\multithreading.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\e4978\faceswap\plugins\extract\_base.py", line 602, in _thread_process
batch = function(batch)
File "C:\Users\e4978\faceswap\plugins\extract\align\_base\aligner.py", line 534, in _predict
batch.prediction = np.array([self.predict(feed) for feed in batch.refeeds])
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (8,) + inhomogeneous part.
06/27/2023 20:37:15 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\e4978\faceswap\crash_report.2023.06.27.203713573641.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Last edited by torzdf on Wed Jun 28, 2023 9:49 am, edited 2 times in total.
I would expect to see more, similar, bugs as Numpy has made a change to how it handles mismatched array sizes. If you see any, please start a new thread
It would be nice to see if it worked after all this time, however I ran the FS update and got presented with this! Now I can't even load up the gui anymore. I did notice before I closed it down and potentially the reason why I can't open it now is it failed to install 'tensorflow deps 2.11.0'?
Got it working and it says it's up to date! Only thing that pops up now is this when I tried using the manual tool (it saves now finally btw!). I'm not sure whether to ignore this or not...
2023-06-30 11:45:45.064 python[11461:117017] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_bundleIdentifierWithReply:) block performed very slowly (6.53 secs).
I suspect, if everything still seems to work fine, then you can just ignore it. Either way, there is unlikely to be anything I can do about that particular message as it occurs well upstream of Faceswap.
That makes sense, thank you so much for all your help though and I'm glad I can continue the project with my mate! I might try updating my mac then and see if that does anything
I just wanted to report that on the manual tool, this error message pops up when I change the filter from 'All Frames' to 'Has Faces'. Hopefully this will be the very last problem, but mentions something to do with Tkinter?
Exception in Tkinter callback
Traceback (most recent call last):
File "/Users/User1/miniforge3/envs/FS/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
return self.func(*args)
File "/Users/User1/faceswap/tools/manual/manual.py", line 250, in _handle_key_press
bindings[key_press.lower()]()
File "/Users/User1/faceswap/tools/manual/frameviewer/control.py", line 115, in decrement_frame
face_count_change = not self._det_faces.filter.frame_meets_criteria
File "/Users/User1/faceswap/tools/manual/detected_faces.py", line 497, in frame_meets_criteria
assert isinstance(retval, bool)
AssertionError
Exception in Tkinter callback
Traceback (most recent call last):
File "/Users/User1/miniforge3/envs/FS/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
return self.func(*args)
File "/Users/User1/faceswap/tools/manual/manual.py", line 250, in _handle_key_press
bindings[key_press.lower()]()
File "/Users/User1/faceswap/tools/manual/frameviewer/control.py", line 115, in decrement_frame
face_count_change = not self._det_faces.filter.frame_meets_criteria
File "/Users/User1/faceswap/tools/manual/detected_faces.py", line 497, in frame_meets_criteria
assert isinstance(retval, bool)
AssertionError
Exception in Tkinter callback
Traceback (most recent call last):
File "/Users/User1/miniforge3/envs/FS/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
return self.func(*args)
File "/Users/User1/faceswap/tools/manual/manual.py", line 250, in _handle_key_press
bindings[key_press.lower()]()
File "/Users/User1/faceswap/tools/manual/frameviewer/control.py", line 101, in increment_frame
face_count_change = not self._det_faces.filter.frame_meets_criteria
File "/Users/User1/faceswap/tools/manual/detected_faces.py", line 497, in frame_meets_criteria
assert isinstance(retval, bool)
AssertionError
Ah ok and yes same alignments file and video. All I'm doing is loading up the gui as normal with 'conda activate faceswap', 'cd faceswap' and then 'python faceswap.py gui'. Once the gui is loaded, I head over to the 'Tools' tab and then I select the manual tool sub heading. I input the alignments file and video in their designated paths and then run it. Once the manual tool opens up, I select the 'Has Faces' filter from the dropdown menu and then that error pops up