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

When trying to convert to coreMLModels I am getting this error AttributeError: 'Namespace' object has no attribute 'merge_chunks_in_pipeline_model' #48

Open
Zulqurnain24 opened this issue Oct 26, 2023 · 0 comments

Comments

@Zulqurnain24
Copy link

INFO:python_coreml_stable_diffusion.chunk_mlprogram:Program loaded in 3.4 seconds
INFO:python_coreml_stable_diffusion.chunk_mlprogram:Converting the two programs
Running MIL frontend_milinternal pipeline: 0 passes [00:00, ? passes/s]
Running MIL default pipeline: 100%|██████████████████████████████████████████████████| 66/66 [00:05<00:00, 13.00 passes/s]
Running MIL backend_mlprogram pipeline: 100%|████████████████████████████████████████| 12/12 [00:00<00:00, 68.10 passes/s]
INFO:python_coreml_stable_diffusion.chunk_mlprogram:Conversion of first chunk done.
Running MIL frontend_milinternal pipeline: 0 passes [00:00, ? passes/s]
Running MIL default pipeline: 100%|██████████████████████████████████████████████████| 66/66 [00:05<00:00, 12.42 passes/s]
Running MIL backend_mlprogram pipeline: 100%|████████████████████████████████████████| 12/12 [00:00<00:00, 59.64 passes/s]
INFO:python_coreml_stable_diffusion.chunk_mlprogram:Conversion of second chunk done.
Traceback (most recent call last):
File "/Users/mohammadzulqurnain/opt/anaconda3/envs/coremlsd2_38/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/mohammadzulqurnain/opt/anaconda3/envs/coremlsd2_38/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/mohammadzulqurnain/Documents/Projects/ImgGenSD2-main/SD21ModelConvChunked/ml-stable-diffusion/python_coreml_stable_diffusion/torch2coreml.py", line 1677, in
main(args)
File "/Users/mohammadzulqurnain/Documents/Projects/ImgGenSD2-main/SD21ModelConvChunked/ml-stable-diffusion/python_coreml_stable_diffusion/torch2coreml.py", line 1511, in main
convert_unet(pipe, args)
File "/Users/mohammadzulqurnain/Documents/Projects/ImgGenSD2-main/SD21ModelConvChunked/ml-stable-diffusion/python_coreml_stable_diffusion/torch2coreml.py", line 1077, in convert_unet
chunk_mlprogram.main(args)
File "/Users/mohammadzulqurnain/Documents/Projects/ImgGenSD2-main/SD21ModelConvChunked/ml-stable-diffusion/python_coreml_stable_diffusion/chunk_mlprogram.py", line 317, in main
if args.merge_chunks_in_pipeline_model:
AttributeError: 'Namespace' object has no attribute 'merge_chunks_in_pipeline_model'``

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

1 participant