0

I have a folder of 100 images on which I am expected to perform some extraction task... in order to save time, I wanted to use concurrent.futures and it worked well.. the problem now is I am not able to map the output to the images in the folder.. (I do not know which extraction belongs to which file).. my code looks something like this:

def main():
    with concurrent.futures.ProcessPoolExecutor() as executor:
        y=([val for val in executor.map(extract_features_new, img_list)])
    return y    
       
if __name__ == '__main__':
    x=main()

is there an option for me to append the file name when it is returning the output??? Can someone help?

0 Answers0