Index mismatch hazard in dataset_preprocessing/ffhq/crop_images_in_the_wild.py
three-bee opened this issue · comments
Bahri Batuhan Bilecen commented
There is no assertion for len(img_files)==len(lm_files)
. If unsatisfied ( len(lm_files)<len(img_files)
, i.e. the face reconstruction backbone could not find landmarks for all given images ) this will eventually cause a hazard in the loop beginning on line 36, causing a continuous mismatch between images and their landmark files:
eg3d/dataset_preprocessing/ffhq/crop_images_in_the_wild.py
Lines 26 to 38 in 7cf1fd1