dagloop5 commited on
Commit
9de2727
·
verified ·
1 Parent(s): 048284b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -42,6 +42,10 @@ LORA_FILES = {
42
  }
43
  DEFAULT_LORA_A_STRENGTH = 0.0
44
  DEFAULT_LORA_B_STRENGTH = 0.0
 
 
 
 
45
 
46
  # Must stay identical to the conditioner's table: the *label* goes over the wire, so a canvas that half does not
47
  # know is rejected there and surfaces as a failure here. This is the workflow's "Target Dimension" node.
 
42
  }
43
  DEFAULT_LORA_A_STRENGTH = 0.0
44
  DEFAULT_LORA_B_STRENGTH = 0.0
45
+ # Some `diffusion_model.blocks.*` checkpoints store SwiGLU's fc1 gate/value halves in the opposite order
46
+ # diffusers expects. Leave off first; if the LoRA's effect looks inverted/broken rather than just weak or
47
+ # strong, set H3_LORA_SWAP_FC1=1 and compare.
48
+ SWAP_FC1_HALVES = os.environ.get("H3_LORA_SWAP_FC1", "0") == "1"
49
 
50
  # Must stay identical to the conditioner's table: the *label* goes over the wire, so a canvas that half does not
51
  # know is rejected there and surfaces as a failure here. This is the workflow's "Target Dimension" node.