ERROR Caught exception in thread: 'FrameLoader.init_frames'

The Extraction process failing on you, and you aren't getting an error back with clear instructions? Tell us about it here


Forum rules

Read the FAQs and search the forum before posting a new topic.

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.

Post Reply
User avatar
icey
Posts: 4
Joined: Tue Feb 14, 2023 3:14 pm

ERROR Caught exception in thread: 'FrameLoader.init_frames'

Post by icey »

The following issues occurred during the use of Manually Fixing for Converting
The attachment contains the crash file

Loading...
Setting Faceswap backend to NVIDIA
10/27/2024 01:17:20 INFO Log level set to: INFO
10/27/2024 01:17:28 INFO Reading alignments from: 'D:\FaceSwap work\sourse\mp4\Never Gonna Give You Up.fsa'
10/27/2024 01:17:28 INFO Loading Align from Fan plugin...
10/27/2024 01:17:28 INFO Loading Mask from Components plugin...
10/27/2024 01:17:28 INFO Loading Mask from Extended plugin...
10/27/2024 01:17:28 INFO Initializing FAN (Align)...

10/27/2024 01:17:32 ERROR Caught exception in thread: 'FrameLoader.init_frames'
10/27/2024 01:17:42 ERROR Got Exception on main handler:
Traceback (most recent call last):
File "D:\faceswap\lib\cli\launcher.py", line 224, in execute_script
process = script(arguments)
File "D:\faceswap\tools\manual\manual.py", line 91, in init
self._wait_for_threads(extractor, loader, valid_meta)
File "D:\faceswap\tools\manual\manual.py", line 159, in wait_for_threads
frames_init = frames_init if frames_init else loader.is_initialized
File "D:\faceswap\tools\manual\manual.py", line 686, in is_initialized
self.
init_thread.join()
File "D:\faceswap\lib\multithreading.py", line 224, in join
raise thread.err[1].with_traceback(thread.err[2])
File "D:\faceswap\lib\multithreading.py", line 100, in run
self.target(*self.args, **self._kwargs)
File "D:\faceswap\tools\manual\manual.py", line 736, in load_images
self.
loader = SingleFrameLoader(frames_location, video_meta_data=video_meta_data)
File "D:\faceswap\lib\image.py", line 1415, in init
super().init(path, queue_size=1, fast_count=False)
File "D:\faceswap\lib\image.py", line 1091, in init
self._get_count_and_filelist(fast_count, count)
File "D:\faceswap\lib\image.py", line 1433, in get_count_and_filelist
count, video_meta_data = self.
reader.get_frame_info(
File "D:\faceswap\lib\image.py", line 113, in get_frame_info
output = process.stdout.readline().strip()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x90 in position 208: illegal multibyte sequence
10/27/2024 01:17:42 CRITICAL An unexpected crash has occurred. Crash report written to 'D:\faceswap\crash_report.2024.10.27.011732290331.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exited.

Attachments
crash_report.2024.10.27.011732290331.log
(42.23 KiB) Downloaded 697 times
User avatar
torzdf
Posts: 2761
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 141 times
Been thanked: 643 times

Re: ERROR Caught exception in thread: 'FrameLoader.init_frames'

Post by torzdf »

Please use the search function. This question has been asked an answered many times:
search.php?keywords=UnicodeDecodeError

My word is final

Post Reply