Skip to content

FluxPipeline.__call__() got an unexpected keyword argument 'invert_image' #14

@EmmaThompson123

Description

@EmmaThompson123
python run_stable_flow.py --hf_token ******************************************** --input_img_path inputs/bottle.jpg --prompts "A photo of a bottle" "A photo of a bottle next to an apple"
2025-05-06 15:14:04.850988: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-05-06 15:14:04.892322: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
/opt/conda/envs/py310/lib/python3.10/site-packages/pandas/core/computation/expressions.py:21: UserWarning: Pandas requires version '2.8.4' or newer of 'numexpr' (version '2.8.3' currently installed).
  from pandas.core.computation.check import NUMEXPR_INSTALLED
Keyword arguments {'visualize_attention': False} are not expected by FluxPipeline and will be ignored.
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████| 2/2 [00:06<00:00,  3.22s/it]
Loading pipeline components...:  71%|██████████████████████████████████████████████████▋                    | 5/7 [00:07<00:04,  2.38s/it]You set `add_prefix_space`. The tokenizer needs to be converted from the slow tokenizers
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████| 3/3 [00:12<00:00,  4.00s/it]
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████| 7/7 [00:20<00:00,  2.89s/it]
Traceback (most recent call last):
  File "/ckptstorage/repo/CVEdit/stable-flow/run_stable_flow.py", line 125, in <module>
    stable_flow.invert_and_save(prompts=stable_flow.args.prompts)
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/ckptstorage/repo/CVEdit/stable-flow/run_stable_flow.py", line 90, in invert_and_save
    inverted_latent_list = self.pipe(
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
TypeError: FluxPipeline.__call__() got an unexpected keyword argument 'invert_image'

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