Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expected str, bytes or os.PathLike object, not NoneType #12

Open
yingdundun opened this issue Sep 6, 2024 · 2 comments
Open

Comments

@yingdundun
Copy link

model = create_model('./configs/cldm_v15_ehdecoder.yaml').cpu()在创建模型的时候报错TypeError: expected str, bytes or os.PathLike object, not NoneType。寻找原因发现 configs/cldm_v15_ehdecoder.yaml文件中的
cond_stage_config:
target: ldm.modules.encoders.modules.FrozenCLIPEmbedder
无法创建这一模块?有人出现同样的问题吗?怎么解决呢?期待得到回复?

@sheqian36
Copy link

You can change the transformers version to 4.19.2 to solve it

@yingdundun
Copy link
Author

You can change the transformers version to 4.19.2 to solve it

New error when modifying the transformers version to 4.4.0: from transformers import T5Tokenizer, T5EncoderModel, CLIPTokenizer, CLIPTextModel
ImportError: cannot import name 'CLIPTokenizer' from 'transformers' (unknown location),
the reason seems to be that the transformers version is too low

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants