tyxsspa / AnyText

Official implementation code of the paper <AnyText: Multilingual Visual Text Generation And Editing>
Apache License 2.0
4.31k stars 282 forks source link

Got error with yaml, I need some help. Please help,thank you #37

Open heroki0817 opened 10 months ago

heroki0817 commented 10 months ago

(anytext) PS E:\AI_Tools\anytext> python inference.py Traceback (most recent call last): File "E:\AI_Tools\anytext\inference.py", line 1, in from modelscope.pipelines import pipeline File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope__init.py", line 4, in from modelscope.utils.import_utils import LazyImportModule File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\utils__init__.py", line 1, in from .hub import create_model_if_not_exist, read_config File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\utils\hub.py", line 12, in from modelscope.utils.config import Config File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\utils\config.py", line 22, in from modelscope.utils.import_utils import import_modules_from_file File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\utils\import_utils.py", line 18, in from modelscope.utils.ast_utils import (INDEX_KEY, MODULE_KEY, REQUIREMENT_KEY, File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\utils\ast_utils.py", line 16, in from modelscope.fileio.file import LocalStorage File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\fileio\init.py", line 4, in from .io import dump, dumps, load File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\fileio\io.py", line 8, in from .format import JsonHandler, YamlHandler File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\fileio\format\init__.py", line 5, in from .yaml import YamlHandler File "C:\Users\hekan\anaconda3\envs\anytext\lib\site-packages\modelscope\fileio\format\yaml.py", line 2, in import yaml ModuleNotFoundError: No module named 'yaml' 20240105004134

tyxsspa commented 10 months ago

yaml package not found. try install one:

pip install yaml
heroki0817 commented 10 months ago

20240106101723 still had same error after installed yaml package, and I don't know why -_- any suggestion?

yxsspa