AnyText icon indicating copy to clipboard operation
AnyText copied to clipboard

AnyTextPipeline: ResourceExhaustedError.__init__() missing 2 required positional arguments: 'op' and 'message

Open jason571 opened this issue 1 year ago • 1 comments

2024-01-09 20:22:31,137 - modelscope - INFO - PyTorch version 2.0.1 Found. 2024-01-09 20:22:31,152 - modelscope - INFO - TensorFlow version 2.13.0 Found. 2024-01-09 20:22:31,152 - modelscope - INFO - Loading ast index from /home/flyang/.cache/modelscope/ast_indexer 2024-01-09 20:22:34,583 - modelscope - INFO - Loading done! Current index file version is 1.10.0, with md5 c3f4ad4f45046b1c409c0f21a503852b and a total number of 946 components indexed

raceback (most recent call last): File "/mnt/p/home/flyang/AnyText/demo.py", line 50, in inference = pipeline('my-anytext-task', model='damo/cv_anytext_text_generation_editing', model_revision='v1.1.1', use_fp16=not args.use_fp32, use_translator=not args.no_translator, font_path=args.font_path) File "/home/flyang/.local/lib/python3.10/site-packages/modelscope/pipelines/builder.py", line 170, in pipeline return build_pipeline(cfg, task_name=task) File "/home/flyang/.local/lib/python3.10/site-packages/modelscope/pipelines/builder.py", line 65, in build_pipeline return build_from_cfg( File "/home/flyang/.local/lib/python3.10/site-packages/modelscope/utils/registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') TypeError: AnyTextPipeline: ResourceExhaustedError.init() missing 2 required positional arguments: 'op' and 'message

jason571 avatar Jan 09 '24 13:01 jason571

pip install tensorflow-datasets==2.1.0 Can't resolve this error

jason571 avatar Jan 09 '24 13:01 jason571