ankanbhunia/PIDM

IndexError: list index out of range

ILLLLUSION opened this issue · 0 comments

I organized the data set according to the requirements of the readme. When I was about to start training, I got the error File "D:\Myresearch\Person_Image_Synthesis\PIDM\data\fashion_data.py", line 105, in getitem
image_path = self.get_image_path(source_image_path, path_item['target_image'])
File "D:\Myresearch\Person_Image_Synthesis\PIDM\data\fashion_data.py", line 142, in get_image_path
source_name = self.path_to_fashion_name(source_name)
File "D:\Myresearch\Person_Image_Synthesis\PIDM\data\fashion_data.py", line 152, in path_to_fashion_name
path_names[4] = path_names[4].split('')[0] + "" + "".join(path_names[4].split('_')[1:])
IndexError: list index out of range

What is the reason for this?