Skip to content
New issue

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

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

Already on GitHub? # to your account

load text_encoder failed #36

Open
coollofty opened this issue Aug 29, 2024 · 1 comment
Open

load text_encoder failed #36

coollofty opened this issue Aug 29, 2024 · 1 comment

Comments

@coollofty
Copy link

text_encoder = CLIPTextModel.from_pretrained(os.path.join(checkpoint_path, 'Magic_Weights'), subfolder="text_encoder").cuda()

get:

!!! Exception during processing !!! F:\ComfyUI\ComfyUI\models\magictime\Magic_Weights does not appear to have a file named text_encoder\config.json

There is no file named 'config. json' in the text_decoder directory

@SHYuanBest
Copy link
Member

Thanks for your interest. You need to change 'os.path.join(checkpoint_path, 'Magic_Weights')' to the path of the base model, i.e. sd1.5.

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

No branches or pull requests

2 participants