Missing modules for handwritten text generation
See original GitHub issue$ trdg -c 3 -w 5 -f 64 -b 1 -hw
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/sukumar/miniconda3/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Missing modules for handwritten text generation.
0%| | 0/3 [00:00<?, ?it/s]multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/sukumar/miniconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/sukumar/miniconda3/lib/python3.7/site-packages/trdg/data_generator.py", line 21, in generate_from_tuple
cls.generate(*t)
File "/home/sukumar/miniconda3/lib/python3.7/site-packages/trdg/data_generator.py", line 65, in generate
image, mask = handwritten_text_generator.generate(text, text_color)
NameError: name 'handwritten_text_generator' is not defined
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sukumar/miniconda3/bin/trdg", line 8, in <module>
sys.exit(main())
File "/home/sukumar/miniconda3/lib/python3.7/site-packages/trdg/run.py", line 432, in main
total=args.count,
File "/home/sukumar/miniconda3/lib/python3.7/site-packages/tqdm/std.py", line 1081, in __iter__
for obj in iterable:
File "/home/sukumar/miniconda3/lib/python3.7/multiprocessing/pool.py", line 748, in next
raise value
NameError: name 'handwritten_text_generator' is not defined
0%|
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Missing modules for handwritten text generation. · Issue #12
Missing modules for handwritten text generation. #12 ... Generating a labels.txt file is not the default behaviour.
Read more >Missing modules for handwritten text generation - Python 博客
I want to generate handwritten based on text extract from Wikipedia and save generated handwritten images and labels. I follow the exact documentation...
Read more >TextRecognitionDataGenerator Documentation
If you want to use the handwritten text generation feature, you need to install the -hw dependencies. pip3 install -r requirements-hw.txt.
Read more >Memory-Efficient Model for Handwritten Text Generation with ...
In this paper, we propose a new method for handwritten text gen- eration that uses generative adversarial networks with multi-class.
Read more >trdg
Generating text image samples to train an OCR software. Now supporting non-latin text! For a more thorough tutorial see the official documentation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! This was never an error, it’s my bad that I didn’t answer.
To use handwritten text generation, you will need Tensorflow and a few more requirements that are not in the basic requirements.txt because it would slow down the overwhelming majority of users who don’t use it.
The error will go away if you install the dependencies listed here: https://github.com/Belval/TextRecognitionDataGenerator/blob/master/requirements-hw.txt
Hi everyone! I’m using python 3.7, I installed all the librearies included in “requirements-hw.txt” and also opt-einsum and astunparse but the error still remains (NameError: name ‘handwritten_text_generator’ is not defined)
Any suggestions? thank you all!!