T O P

  • By -

Pro-Row-335

Of course, anything you can visually distinguish can be trained in a segmentation/detection model, age, gender, BMI... you just need the labeled data [https://muskanjindal242.medium.com/gender-and-age-detection-with-opencv-17fa51de780e](https://muskanjindal242.medium.com/gender-and-age-detection-with-opencv-17fa51de780e)


chickenofthewoods

Ok, that's really intimidating. Thank you.


monsieur__A

Try Florence 2, I got good results using it for gender détection.


chickenofthewoods

That has nothing to do with using adetailer?


monsieur__A

I'm using it to detect the gender and then use this information to automatically build a prompt for the face detailer.


chickenofthewoods

I don't understand. If you have an image and it's detecting the gender of an *existing* image, how does that help me apply adetailer while generating images?


Educational_Smell292

Could it be that you are not using comfy?


chickenofthewoods

I don't understand the concept though, it doesn't make logical sense. If the LLM is interpreting an existing image how does that help me use adetailer on two different faces with different gender while generating new images? I know how to use regional prompting and I know how to use [SEP] and [SKIP], but they don't do what I want to do. What I've asked is for an adetailer model. Not an LLM. Specifically if it would be possible to train one. I may be interested in training one myself. I have Taggui and can use a bunch of different LLMs to tag my images, and most of them can discern gender. Please explain how using Florence with comfy allows you to use an adetailer model that doesn't exist.


oh_how_droll

Adetailer is just masking followed by an inpainting-style img2img step with a more specific prompt. The fact that you don't get shown the intermediate image doesn't make that not true. There's no such thing as an "Adetailer model", that's a detection model that's being used to target what needs refined. Florence-2 is a really powerful model for detection tasks, and it can also be used to help write that prompt used for refinement.


chickenofthewoods

> Adetailer is just masking followed by an inpainting-style img2img step with a more specific prompt. Really? > There's no such thing as an "Adetailer model" This is pedantic and unnecessary. I can write the prompts I need myself. If comfy can do what I'm suggesting then I may try it out just for that purpose, but I do not like it. I can use Florence-2 to tag images in Taggui but that's all I know how to do. Can you link me to something I can read about what you are trying to suggest? Are you talking about manually modifying a single image? Because I'm not looking for that - there are plenty of ways to simply inpaint images. I want a model... a detection model... that I can use with adetailer to recognize gender and apply the simple adetailer prompt to inpaint the face automatically so I can just use it in batches. I want to download a detection model and put it into my auto1111 models/adetailer folder and have it available as a tab within adetailer. Can I use Florence-2 in comfy to achieve this?


Enshitification

I think there is some nomenclature confusion here. Adetailer is the part that inpaints, the detection model is something like a yolov8 model. If you have a good amount of existing images that show what your definitions of a male and female model are, you can train your own and use it with Adetailer. Check here. https://civitai.com/articles/4080


chickenofthewoods

Thank you for directly answering one of my important questions. I appreciate it. I can generate images of male and female humans to train with.


oh_how_droll

You can't make Florence-2 integrate from Comfy to A1111, but you can absolutely replicate Adetailer using Florence-2 and Comfy.


chickenofthewoods

I don't need to replicate adetailer. I need to add to its function. I asked if it was possible to train a model to detect gender. How else would adetailer detect anything without a model? Anyway another user answered my simple question directly so thanks for all your help.