mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
processors multiple fixes
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -113,7 +113,7 @@ class FluxToolsScript(scripts_manager.Script):
|
||||
shared.opts.data["sd_model_checkpoint"] = "black-forest-labs/FLUX.1-Canny-dev"
|
||||
sd_models.reload_model_weights(op='model', revision="refs/pr/1")
|
||||
if processor_canny is None:
|
||||
from controlnet_aux import CannyDetector
|
||||
from modules.control.proc.canny import CannyDetector
|
||||
processor_canny = CannyDetector()
|
||||
if process:
|
||||
control_image = processor_canny(image, low_threshold=50, high_threshold=200, detect_resolution=1024, image_resolution=1024)
|
||||
|
||||
Reference in New Issue
Block a user