what about this error: c:\Supir\SUPIR\venv\lib\site-packages\open_clip\factory.py:213 in create_mod

what about this error: c:\Supir\SUPIR\venv\lib\site-packages\open_clip\factory.py:213 in create_model │ │ │ │ 210 │ │ │ │ │ f'Pretrained weights ({pretrained}) not found for model {model_name} │ │ 211 │ │ │ │ │ f'Available pretrained tags ({list_pretrained_tags_by_model(model_na │ │ 212 │ │ │ │ logging.warning(error_str) │ │ ❱ 213 │ │ │ │ raise RuntimeError(error_str) │ │ 214 │ │ │ pretrained_loaded = True │ │ 215 │ │ elif has_hf_hub_prefix: │ │ 216 │ │ │ logging.info(f'Loading pretrained {model_name} weights ({pretrained}).') │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ RuntimeError: Pretrained weights (models/open_clip_pytorch_model.bin) not found for model ViT-bigG-14.Available pretrained tags (['laion2b_s39b_b160k'].
15 Replies
Vito
Vito12mo ago
Well, non-native English speaker, you know ha ha
Fabricatedgirls
Fabricatedgirls12mo ago
I figured ha, all good
Vito
Vito12mo ago
It seems like you are also interested in fineturn instead of dreambooth, right?
Fabricatedgirls
Fabricatedgirls12mo ago
tbh i dont know what's the advantage of either, i thought dreambooth was for finetuning!
Vito
Vito12mo ago
Well, I'm also in the exploratory stage
57
5712mo ago
Here for history, congrats @Dr. Furkan Gözükara your post is going virtal on twitter
Morph
Morph12mo ago
which one share the link
Dr.Hsan
Dr.Hsan12mo ago
@Dr. Furkan Gözükara i am surprised no application has multi prompts for SDXL, its an amazing function which gives much more control on the images. I Used it on through SD official API . By sending 2 positive prompts and one negative. If anyone seen this function please let me know
felixsanz
felixsanz12mo ago
multi prompts? you mean one prompt for first text encoder and another prompt to the second text encoder? is not that powerfull!
Dr.Hsan
Dr.Hsan12mo ago
import fs from "fs"; const options = { method: "POST", headers: { Accept: "application/json", "content-type": "application/json", Authorization: "Bearer YOUR_API_KEY" }, body: JSON.stringify({ samples: 1, height: 1024, width: 1024, steps: 40, cfg_scale: 5, textprompts: [ { "text": "A painting of a cat", "weight": 1 }, { "text": "a dog barking", "weight": 1 }, { "text": "logo, ", "weight": -1 } ], }) }; const response = await fetch( "https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/text-to-image", options )
if (!response.ok) { throw new Error(Non-200 response: ${await response.text()}) } const responseJSON = await response.json() responseJSON.artifacts.forEach((image, index) => { fs.writeFileSync( `./out/txt2img
${image.seed}.png`, Buffer.from(image.base64, 'base64') ) });
felixsanz
felixsanz12mo ago
that doesn't answer
Dr.Hsan
Dr.Hsan12mo ago
both prompts are flowing through both encoders
felixsanz
felixsanz12mo ago
but yeah, probably one prompt for each text encoder that's not possible. it's just a concatenation then it's like sending "A painting of a cat a dog barking"
Dr.Hsan
Dr.Hsan12mo ago
you can add more than 4 prompts, control the weight for each 1 seperatly.
felixsanz
felixsanz12mo ago
anyway, all apps have that

Did you find this page helpful?