Page 1 of 1

trying to convert images to images without video

Posted: Sat Mar 12, 2022 2:57 am
by vegetoandme

I have a folder of pictures-not frames-that I'm swapping. I'm all set to start converting, but I'm trying to use the frame range tool in convert, It says "if you are converting from images, then the filenames must end with the frame-number."

How exactly should the source file be named? For example, one of the images is

RyonenABeautifulMind_2012-06-08_011xxxxxl.jpg

How should the file be renamed so that faceswap recognizes is as a frame that needs to be swapped? I've tried everything i can think of, but I keep getting this error message

Got Exception on main handler:
Traceback (most recent call last):
File "D:\Programs\faceswap\lib\cli\launcher.py", line 181, in execute_script
process = script(arguments)
File "D:\Programs\faceswap\scripts\convert.py", line 64, in init
self.disk_io = DiskIO(self.alignments, self.images, arguments)
File "D:\Programs\faceswap\scripts\convert.py", line 250, in init
self.
frame_ranges = self._get_frame_ranges()
File "D:\Programs\faceswap\scripts\convert.py", line 350, in get_frame_ranges
indices = [int(self.
imageidxre.findall(os.path.basename(filename))[0])
File "D:\Programs\faceswap\scripts\convert.py", line 350, in <listcomp>
indices = [int(self._imageidxre.findall(os.path.basename(filename))[0])
IndexError: list index out of range


Re: trying to convert images to images without video

Posted: Sat Mar 12, 2022 2:58 am
by bryanlyon

If you're doing images, then you can't use the frame-range tool. Instead just create a folder with just the images you want to convert as the input.


Re: trying to convert images to images without video

Posted: Sat Mar 12, 2022 4:10 am
by vegetoandme

They're already in their own folder. I'm trying to only convert a portion at a time because of the limitations of my computer. Faceapp crashes about 10 images in every time.


Re: trying to convert images to images without video

Posted: Tue Mar 15, 2022 2:50 pm
by torzdf

What bryan means is split the folder of images up into smaller folders of images, and then convert them.