lowered download thread from 10 to 4

This commit is contained in:
Stefal 2023-09-15 20:13:42 +02:00
parent 3f25135c4e
commit e3140c607a

View File

@ -135,7 +135,7 @@ if __name__ == '__main__':
#sys.exit() #sys.exit()
print('downloading.. this process will take a while. please wait') print('downloading.. this process will take a while. please wait')
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor: with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor:
for i,image_data in enumerate(images_data): for i,image_data in enumerate(images_data):
# create a folder for each unique sequence ID to group images by sequence # create a folder for each unique sequence ID to group images by sequence
if not os.path.exists('data/{}'.format(image_data['sequence_id'])): if not os.path.exists('data/{}'.format(image_data['sequence_id'])):