diff --git a/scripts/ddetailer.py b/scripts/ddetailer.py index 65802f0..7841d8e 100644 --- a/scripts/ddetailer.py +++ b/scripts/ddetailer.py @@ -203,7 +203,7 @@ class DetectionDetailerScript(scripts.Script): subseed_strength=p_txt.subseed_strength, seed_resize_from_h=p_txt.seed_resize_from_h, seed_resize_from_w=p_txt.seed_resize_from_w, - sampler_index=p_txt.sampler_index, + sampler_name=p_txt.sampler_name, n_iter=p_txt.n_iter, steps=p_txt.steps, cfg_scale=p_txt.cfg_scale, @@ -325,7 +325,7 @@ class DetectionDetailerScript(scripts.Script): images.save_image(processed.images[0], p.outpath_samples, "", start_seed, p.prompt, opts.samples_format, info=initial_info, p=p) else: - print("No model {label_a} detections for output generation {n} with current settings.") + print(f"No model {label_a} detections for output generation {n} with current settings.") state.job = f"Generation {n + 1} out of {state.job_count}" if (initial_info is None): initial_info = "No detections found." @@ -533,4 +533,4 @@ def inference_mmdet_bbox(image, modelname, conf_thres, label): return results -script_callbacks.on_ui_settings(on_ui_settings) \ No newline at end of file +script_callbacks.on_ui_settings(on_ui_settings)