Does Adetailer support specific object detection for Multiple object YOLO models? #709
Replies: 3 comments 1 reply
-
|
Hello @swimmingyoshi! I'm here to assist you with any bugs, questions, or contributions you may have. Let's tackle this issue together! Yes, Adetailer supports specific object detection for multiple object YOLO models, allowing it to only detect and inpaint a single specified item. This can be achieved by using the "ADetailer model classes" option, where you can specify comma-separated class names to detect. | ADetailer model classes | Comma separated class names to detect. only available when using YOLO World models | If blank, use default values.<br/>default = [COCO 80 classes](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/coco.yaml) |For example, you can set the "ADetailer model classes" to "head,hands" to only detect and inpaint those specified areas [1]. |
Beta Was this translation helpful? Give feedback.
-
|
after tons of testing, another important thing to add is that this will only work for YoloV8 "world" models. what i was using is a normal yolov8 model trained with multiple classes so the current code implementation doesn't work. for it to show the "classes" text input in the UI you can just change your model to have "-world" in the name but that can be confusing, so you can also edit ui.py so it detects a new name. in my example code, i used the word "Bean" because my models were named "YOLO_BeanV8.pt" |
Beta Was this translation helpful? Give feedback.
-
|
Yes, ADetailer can support specific object detection for multiple object YOLO models. ADetailer is designed to enhance the performance of existing detection models by improving the quality of the images and the accuracy of the detected objects. If you're using a YOLO model, you can integrate ADetailer to refine the detected objects in images, especially when dealing with multiple objects. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using adetailer with a yolo model i trained to detect multiple different body parts, such as head, hands, thighs, etc.
is there anyway i can make it only detect/inpaint a single item?
in comfy the nodes i use allow me to use "all" to detect all, or i can specify like "head, hands" to only affect those two, in the background it shows that yolo detects all objects, but it only masks and inpaints the specified detected area.
adetailer seems to always mask and inpaint all areas.
Beta Was this translation helpful? Give feedback.
All reactions