The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add a ModelSamplingAuraFlow node to change the shift value.
comfyanonymous8e012043a9d0
diff --git a/comfy/supported_models.py b/comfy/supported_models.pyindex ccf8c333e..a030f6229 100644--- a/comfy/supported_models.py+++ b/comfy/supported_models.py@@ -564,6 +564,7 @@ class AuraFlow(supported_models_base.BASE):sampling_settings = {"multiplier": 1.0,+ "shift": 1.73,}unet_extra_config = {}diff --git a/comfy_extras/nodes_model_advanced.py b/comfy_extras/nodes_model_advanced.pyindex 97559cf56..22ba9547b 100644--- a/comfy_extras/nodes_model_advanced.py+++ b/comfy_extras/nodes_model_advanced.py@@ -144,7 +144,7 @@ class ModelSamplingSD3:CATEGORY = "advanced/model"- def patch(self, model, shift):+ def patch(self, model, shift, multiplier=1000):m = model.clone()sampling_base = comfy.model_sampling.ModelSamplingDiscreteFlow@@ -154,10 +154,22 @@ class ModelSamplingSD3:passmodel_sampling = ModelSamplingAdvanced(model.model.model_config)- model_sampling.set_parameters(shift=shift)+ model_sampling.set_parameters(shift=shift, multiplier=multiplier)m.add_object_patch("model_sampling", model_sampling)return (m, )+class ModelSamplingAuraFlow(ModelSamplingSD3):+ @classmethod+ def INPUT_TYPES(s):+ return {"required": { "model": ("MODEL",),+ "shift": ("FLOAT", {"default": 1.73, "min": 0.0, "max": 100.0, "step":0.01}),+ }}++ FUNCTION = "patch_aura"++ def patch_aura(self, model, shift):+ return self.patch(model, shift, multiplier=1.0)+class ModelSamplingContinuousEDM:@classmethoddef INPUT_TYPES(s):@@ -271,5 +283,6 @@ NODE_CLASS_MAPPINGS = {"ModelSamplingContinuousV": ModelSamplingContinuousV,"ModelSamplingStableCascade": ModelSamplingStableCascade,"ModelSamplingSD3": ModelSamplingSD3,+ "ModelSamplingAuraFlow": ModelSamplingAuraFlow,"RescaleCFG": RescaleCFG,}