You can ensure the save folder exists by adding this line before the outer for
loop:
Path(save_path).mkdir(exist_ok=True)
See documentation.
You can ensure the save folder exists by adding this line before the outer for
loop:
Path(save_path).mkdir(exist_ok=True)
See documentation.