An error occurred as title, which informs that the file is not exist by the code
[line 87 | font2img.py] e.save(os.path.join(sample_dir, "%d_%04d.jpg" % (label, count)))
This is not a bug of PIL(pillow). It is coursed by the command. If the sample_dir is not exits, the program will through an error rather than create the sample_dir.
In conclusion, BEFORE run the preprocess command, sample_dir should be mkdirMANUALLY.
This is a SOLVED problem.
When running the preprocess command
An error occurred as title, which informs that the file is not exist by the code
[line 87 | font2img.py] e.save(os.path.join(sample_dir, "%d_%04d.jpg" % (label, count)))
This is not a bug of PIL(pillow). It is coursed by the command. If the
sample_dir
is not exits, the program will through an error rather than create thesample_dir
.In conclusion, BEFORE run the preprocess command,
sample_dir
should bemkdir
MANUALLY.