Skip to content

filename too long running with runwayml/stable-diffusion-v1-5 #45

Open
@brunoamaral

Description

@brunoamaral

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions