ml-stable-diffusion
ml-stable-diffusion copied to clipboard
filename too long running with runwayml/stable-diffusion-v1-5
python -m python_coreml_stable_diffusion.pipeline --prompt $prompt -i output-ml-packages -o ~/Desktop/ --compute-unit ALL --seed 93 --model-version runwayml/stable-diffusion-v1-5
The output :
INFO:__main__:Generated image has nsfw concept=False
Traceback (most recent call last):
File "/Users/brunoamaral/.pyenv/versions/3.10.6/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/brunoamaral/.pyenv/versions/3.10.6/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/brunoamaral/Labs/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 534, in <module>
main(args)
File "/Users/brunoamaral/Labs/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 485, in main
out_path = get_image_path(args)
File "/Users/brunoamaral/Labs/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 444, in get_image_path
os.makedirs(out_folder, exist_ok=True)
File "/Users/brunoamaral/.pyenv/versions/3.10.6/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [Errno 63] File name too long: '/Users/brunoamaral/Desktop/${$((_p9k_on_expand()...
Running on MacOS Ventura 13.0.1, M2
ran new tests, seems that when I replace $prompt with the actual string with ', the command runs as it should.
not only v1.5, if you use long prompt text, you will get the file name too long error. @brunoamaral
https://github.com/apple/ml-stable-diffusion/issues/52
#19
relevant
me too,
INFO:main:Generated image has nsfw concept=False
Traceback (most recent call last):
File "/Users/case/miniconda3/envs/coreml_stable_diffusion/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/case/miniconda3/envs/coreml_stable_diffusion/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/case/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 540, in
#48 https://github.com/apple/ml-stable-diffusion/issues/48