How to ignore head repairs that are less than 5 percent of the total image? #661
Unanswered
joseph16388
asked this question in
Q&A
Replies: 2 comments 3 replies
-
To ignore head repairs that are less than 5 percent of the total image through the API, you can use the Here is the relevant code snippet: w.ad_mask_min_ratio = gr.Slider(
label="Mask min area ratio" + suffix(n),
minimum=0.0,
maximum=1.0,
step=0.001,
value=0.05, # Set this value to 0.05 to ignore repairs less than 5 percent
visible=True,
elem_id=eid("ad_mask_min_ratio"),
) This configuration will ensure that only repairs that cover at least 5 percent of the total image area are considered [1][2]. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What is the default value of ad_mask_min_ratio in the adetailer api? @dosu |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I ignore head fixes that are less than 5 percent of the total image through the API? thanks!
Beta Was this translation helpful? Give feedback.
All reactions