Replies: 5 comments 9 replies
-
Uhh, I think this is all it takes maybe. Dunno if it's the right thing to do but it doesn't error anymore and temp[0] seems to be filled and the result looks different than any of the other samplers. in def forward(self, x, sigma, uncond, cond, cond_scale, s_min_uncond, image_cond, model_options=None):
if state.interrupted or state.skipped:
raise sd_samplers_common.InterruptedException
if model_options is None:
model_options = {} # Initialize model_options if not provided would be nice if someone else can check them as well |
Beta Was this translation helpful? Give feedback.
-
Anything based off the Comfy method just gave me burnt results, and in the case of Euler the results drifted to the negative prompt. |
Beta Was this translation helpful? Give feedback.
-
well in my opinion those cfgpp things can be better if implemented in a way like a checkbox or what so that all samplers can just use it directly, rather than adding independent samplers. but I agree that Eular A cfgpp can be somewhat more emergency and maybe one should just have it directly anyway I will take a look again later probably the next time when I am on forge again and you may post this again later in case I forget it. also, Forge's sampling is about 80% a1111 + 15% my codes + 5% mixed from comfyui/diffusers/prs from people that I do not know. So usually if you want to add a thing, you can mainly take a look how a1111 handle it. Or you can directly PR a1111 webui and wait upstream to merge and we will also then pull ( but that will be very very slow If you want to directly merge codes from comfyui to forge it is also okay but you need to make sure that the sampler is not already there, and make sure to use Forge's patching system. Forge's patching system is CFG for eps (unlike CFG for x0 in comfyui) to perfectly reproduce webui results (and a1111 features like "AND" blending, etc). And maybe thats why you get blurred results. If other things are in order then someone will merge it. |
Beta Was this translation helpful? Give feedback.
-
Is there any update on ++ samplers being added to forge? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I was trying to see if I could get them working. I think maybe you could probably just adopt the sampler codes from comfy
like
Here I tried only changing
comfy.model_patcher.set_model_options_post_cfg_function
tobackend.patcher.base.set_model_options_post_cfg_function
but I couldn't find if it's used elsewhere and it complains like thisAnd I also tried using the example from ddim_cfgpp but that gives burned-nan results
not really sure how to adopt it to all the different samplers
Beta Was this translation helpful? Give feedback.
All reactions