trying to convert images to images without video

Getting errors or found a bug when converting faces from a trained model? Post about them here


Forum rules

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

This forum is for reporting errors with the Convert process. If you want to get tips, or better understand the Convert process, then you should look in the Convert Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
vegetoandme
Posts: 5
Joined: Fri Sep 17, 2021 7:53 pm

trying to convert images to images without video

Post 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

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: trying to convert images to images without video

Post 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.

User avatar
vegetoandme
Posts: 5
Joined: Fri Sep 17, 2021 7:53 pm

Re: trying to convert images to images without video

Post 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.

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: trying to convert images to images without video

Post by torzdf »

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

My word is final

Locked