AttributeError: 'NoneType' object has no attribute 'save' | Pillow python 3.7

Viewed 19

I made a fresh conda environment to solve above error and install all dependencies regarding library. Still, I am unable to solve above error and i am wondering what is main problem? I have tired a lot of pillow versions but still problem is unsolved.

GitHub https://github.com/Belval/TextRecognitionDataGenerator

Missing modules for handwritten text generation.
Config file can be found in config folder
Please change the path to the fonts folder in Config
Generate Images via Strings
Validation split examples: 300
save Images:   3%|██▉                                                                                  | 34/1000 [00:00<00:02, 435.97it/s]
Traceback (most recent call last):
  File "datasetgenerator.py", line 191, in <module>
    ).generate_n_samples(samples, save=save, val_split=val_split)
  File "datasetgenerator.py", line 80, in generate_n_samples
    img.save(os.path.join(self._directory, filename))
AttributeError: 'NoneType' object has no attribute 'save'
0 Answers
Related