Skip to content

pick_operations() got an unexpected keyword argument 'scaled_fp8' on torch 2.9.1+cu130 #206

Description

@vibetools

Had this error showing on the BrushNet node. Gemini fixed it, I have no clue how, but now it works:

--- a/brushnet_nodes.py
+++ b/brushnet_nodes.py
@@ -942,1 +942,1 @@
-                                               fp8_optimizations=fp8, scaled_fp8=model.model.model_config.scaled_fp8)
+                                               None)

--- a/model_patch.py
+++ b/model_patch.py
@@ -86,1 +86,1 @@
-def brushNet_out_sample_wrapper(wrapper_executor, noise, latent_image, sampler, sigmas, denoise_mask=None, callback=None, disable_pbar=False, seed=None):
+def brushNet_out_sample_wrapper(wrapper_executor, noise, latent_image, sampler, sigmas, denoise_mask=None, callback=None, disable_pbar=False, seed=None, **kwargs):
@@ -95,1 +95,2 @@
-        out = wrapper_executor(noise, latent_image, sampler, sigmas, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
+        # Pass **kwargs here so latent_shapes and any future arguments get through
+        out = wrapper_executor(noise, latent_image, sampler, sigmas, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed, **kwargs)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions