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

I can't install models #28

Open
hubrockman opened this issue Jul 23, 2023 · 2 comments
Open

I can't install models #28

hubrockman opened this issue Jul 23, 2023 · 2 comments

Comments

@hubrockman
Copy link

hubrockman commented Jul 23, 2023

How can I import the normal models that are downloaded from any site?
When I try to do it, it rejects me

Startup extract ckpt(D:\SD\stable-diffusion-webui\models\Stable-diffusion\abyssorangemix3AOM3_aom3a1.safetensors).....

Microsoft Windows [Version 10.0.19045.3208]
(c) Microsoft Corporation. Todos los derechos reservados.
global_step key not found in model
Traceback (most recent call last):
File "${Workspace}\repo\diffusion_scripts\convert\convert_original_stable_diffusion_to_diffusers.py", line 103, in
pipe = download_from_original_stable_diffusion_ckpt(
File "${Workspace}\repo\onnx.venv\lib\site-packages\diffusers\pipelines\stable_diffusion\convert_from_ckpt.py", line 1291, in download_from_original_stable_diffusion_ckpt
text_model = convert_ldm_clip_checkpoint(checkpoint)
File "${Workspace}\repo\onnx.venv\lib\site-packages\diffusers\pipelines\stable_diffusion\convert_from_ckpt.py", line 737, in convert_ldm_clip_checkpoint
text_model.load_state_dict(text_model_dict)
File "${Workspace}\repo\onnx.venv\lib\site-packages\torch\nn\modules\module.py", line 2041, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for CLIPTextModel:
Unexpected key(s) in state_dict: "text_model.embeddings.position_ids".
${Workspace}\repo>"onnx.venv/Scripts/python.exe" "./diffusion_scripts/convert/convert_diffusers_to_onnx.py" --model_path="D:/SDTEST/XUI.3.3.Preview/models/diffusers/abyssorangemix3AOM3_aom3a1" --output_path="${Workspace}\models\onnx/abyssorangemix3AOM3_aom3a1"
${Workspace}\repo\onnx.venv\lib\site-packages\diffusers\models\cross_attention.py:30: FutureWarning: Importing from cross_attention is deprecated. Please import from diffusers.models.attention_processor instead.
deprecate(
${Workspace}\models\onnx/abyssorangemix3AOM3_aom3a1
Traceback (most recent call last):
File "${Workspace}\repo\diffusion_scripts\convert\convert_diffusers_to_onnx.py", line 366, in
convert_models(args.model_path, args.output_path, args.opset, args.fp16)
File "${Workspace}\repo\onnx.venv\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "${Workspace}\repo\diffusion_scripts\convert\convert_diffusers_to_onnx.py", line 80, in convert_models
pipeline = StableDiffusionPipeline.from_pretrained(model_path, torch_dtype=dtype).to(device)
File "${Workspace}\repo\onnx.venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 903, in from_pretrained
config_dict = cls.load_config(cached_folder)
File "${Workspace}\repo\onnx.venv\lib\site-packages\diffusers\configuration_utils.py", line 350, in load_config
raise EnvironmentError(
OSError: Error no file named model_index.json found in directory D:/SDTEST/XUI.3.3.Preview/models/diffusers/abyssorangemix3AOM3_aom3a1.
${Workspace}\repo>exit

@ForserX
Copy link
Owner

ForserX commented Jul 23, 2023

RuntimeError: Error(s) in loading state_dict for CLIPTextModel:
Check the input data and the model version

If my memory does not change, then such departures are typical when you shove 2.0 into SD 1.5

@hubrockman
Copy link
Author

Thanks for answering, what kind of measures should I take from here? I'm sorry I'm not so knowledgeable on the subject, I barely know how to install some things using python commands and little else

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

No branches or pull requests

2 participants