df icon indicating copy to clipboard operation
df copied to clipboard

IndexError: list index out of range

Open Irastris opened this issue 8 years ago • 4 comments

(dfaker) D:\Library\Desktop\DFaker>python train.py
running
Traceback (most recent call last):
  File "train.py", line 25, in <module>
    images_A,landmarks_A = load_images( images_A[:minImages] )
  File "D:\Library\Desktop\DFaker\utils.py", line 14, in load_images_masked
    basePath = os.path.split(image_paths[0])[0]
IndexError: list index out of range

(dfaker) D:\Library\Desktop\DFaker>

Irastris avatar Jan 29 '18 18:01 Irastris

Looks like the training images aren't in the correct place, please look at the examples in the readme.

dfaker avatar Jan 29 '18 19:01 dfaker

Ah, I see. So the aligned images are not meant to remain in the aligned subdirectory. I was confused because alignments.json lists the images as being within aligned so I thought moving them would cause other errors.

Irastris avatar Jan 29 '18 19:01 Irastris

I see that wasn't particularly clear, I'll close this off now.

dfaker avatar Jan 29 '18 19:01 dfaker

Alright, thank you for your assistance.

Irastris avatar Jan 29 '18 19:01 Irastris