VanillaCFG.__init__() got an unexpected keyword argument 'dyn_thresh_config'
Traceback (most recent call last):
File "/data/yingkai/sdxl/generative-models/tests/inference/test_text_to_image.py", line 23, in
I met the same error. When I read the source code, I found that the dyn_thresh_config only appears in one place:
https://github.com/Stability-AI/generative-models/blob/fbdc58cab9f4ee2be7a5e1f2e2787ecd9311942f/sgm/inference/api.py#L290-L300
But in the directory of sgm.modules.diffusionmodules.sampling_utils.NoDynamicThresholding, I couldn't find the implementation of this function.
Finally I commented out this parameter as follows, and the program can run successfully.
guider_config = {
"target": "sgm.modules.diffusionmodules.guiders.VanillaCFG",
"params": {"scale": scale},
# "params": {"scale": scale, "dyn_thresh_config": dyn_thresh_config},
}