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
Well, non-native English speaker, you know ha ha
I figured ha, all good
It seems like you are also interested in fineturn instead of dreambooth, right?
tbh i dont know what's the advantage of either, i thought dreambooth was for finetuning!
Well, I'm also in the exploratory stage
Here for history, congrats @Dr. Furkan Gözükara your post is going virtal on twitter
which one share the link
@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
multi prompts?
you mean one prompt for first text encoder and another prompt to the second text encoder?
is not that powerfull!
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(
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')
)
});that doesn't answer
both prompts are flowing through both encoders
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"
you can add more than 4 prompts, control the weight for each 1 seperatly.
anyway, all apps have that