Oysiyl commited on
Commit
b63dea3
·
1 Parent(s): e2cedf0

Apply Stable Cascade filter to Tile ControlNet in first pass

Browse files

- Change tile preprocessor to use qr_for_brightness instead of qr_with_border_noise
- Now both brightness and tile ControlNets use the same filtered/raw QR input
- Ensures consistent preprocessing across all first-pass ControlNets
- Improves overall quality when filter is enabled

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2490,14 +2490,14 @@ def _pipeline_artistic(
2490
  vae=get_value_at_index(checkpointloadersimple_artistic, 2),
2491
  )
2492
 
2493
- # Tile preprocessor (using QR with border cubics)
2494
  tile_processed = tilepreprocessor.execute(
2495
  pyrUp_iters=3,
2496
  resolution=image_size,
2497
- image=qr_with_border_noise,
2498
  )
2499
 
2500
- # Second ControlNet pass (using tile processed from QR with border cubics)
2501
  controlnet_apply = controlnetapplyadvanced.apply_controlnet(
2502
  strength=controlnet_strength_first,
2503
  start_percent=0,
 
2490
  vae=get_value_at_index(checkpointloadersimple_artistic, 2),
2491
  )
2492
 
2493
+ # Tile preprocessor (using filtered or raw QR with border cubics)
2494
  tile_processed = tilepreprocessor.execute(
2495
  pyrUp_iters=3,
2496
  resolution=image_size,
2497
+ image=qr_for_brightness,
2498
  )
2499
 
2500
+ # Second ControlNet pass (using tile processed from filtered/raw QR)
2501
  controlnet_apply = controlnetapplyadvanced.apply_controlnet(
2502
  strength=controlnet_strength_first,
2503
  start_percent=0,