AnyText icon indicating copy to clipboard operation
AnyText copied to clipboard

TypeError: MyCustomPipeline: MyCustomModel: DataLossError.__init__() missing 2 required positional arguments: 'op' and 'message'

Open wangwenqiao666 opened this issue 1 year ago • 5 comments

Traceback (most recent call last): File "/data/AnyText/inference.py", line 3, in pipe = pipeline('my-anytext-task', model='damo/cv_anytext_text_generation_editing', model_revision='v1.1.0') File "/data/AnyText/python/lib/python3.10/site-packages/modelscope/pipelines/builder.py", line 170, in pipeline return build_pipeline(cfg, task_name=task) File "/data/AnyText/python/lib/python3.10/site-packages/modelscope/pipelines/builder.py", line 65, in build_pipeline return build_from_cfg( File "/data/AnyText/python/lib/python3.10/site-packages/modelscope/utils/registry.py", line 215, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') TypeError: MyCustomPipeline: MyCustomModel: DataLossError.init() missing 2 required positional arguments: 'op' and 'message'

wangwenqiao666 avatar Jan 02 '24 09:01 wangwenqiao666

When i us wsl in windows10 .I got the same issue. Then I solved this problem by using ubuntu 22.04 。

DoubleCake avatar Jan 03 '24 06:01 DoubleCake

当我在 windows10 中使用 wsl 时,我遇到了同样的问题。 然后我使用 ubuntu 22.04 解决了这个问题。

This is the missing configuration file, I used git clone to download, not complete, and then re-manually download it

wangwenqiao666 avatar Jan 03 '24 10:01 wangwenqiao666

Can you share you tensorFlow version?

jason571 avatar Jan 09 '24 13:01 jason571

当我在 windows10 中使用 wsl 时,我遇到了同样的问题。 然后我使用 ubuntu 22.04 解决了这个问题。

This is the missing configuration file, I used git clone to download, not complete, and then re-manually download it

请问你重新下载的是项目文件还是模型文件?

Wangxunhang avatar Jan 11 '24 07:01 Wangxunhang

当我在 windows10 中使用 wsl 时,我遇到了同样的问题。 然后我使用 ubuntu 22.04 解决了这个问题。

This is the missing configuration file, I used git clone to download, not complete, and then re-manually download it

请问你重新下载的是项目文件还是模型文件?

模型文件

wangwenqiao666 avatar Jan 17 '24 05:01 wangwenqiao666