Answers.Body: <p>First problem: I would start with training YOLOv5 model on two categories, full-body and partial-body. You would have to make your own dataset but since with yolo you usually use pretrained models, I guess 200 labeled samples (100 each category) would be enough. I'd recommend ultralytic's implementation of YOLOv5: <a href="https://github.com/ultralytics/yolov5" rel="nofollow noreferrer">https://github.com/ultralytics/yolov5</a></p>
  <p>As for second problem, this can be helpful: <a href="https://github.com/kevinlin311tw/CDCL-human-part-segmentation" rel="nofollow noreferrer">https://github.com/kevinlin311tw/CDCL-human-part-segmentation</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-17T12:55:26.973Z
Answers.Text: Thank you so much for your time GKozinski, this is very helpful.
Answers.UserDisplayName: Igor Michetti
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-31T17:45:21.883Z
Answers.LastActivityDate: 2022-08-31T17:45:21.883Z
Answers.UserDisplayName: GKozinski
Body: <p>recently I started a personal project that uses some Machine Learning techniques in the process, so I'm currently collecting <strong>human images</strong> with a web scraper. I know that I can use some pre-trained models to verify if there is a human in the picture and segregate it from it's background using a mask algorithm. But besides that, I also need to filter only images with a full human body exposed, and alongside that it would be practical to segment the body into <strong>head, torso, legs and feet</strong>.</p>
  <p><strong>I want to know if anyone know a technique:</strong></p>
  <ul>
  <li>to classify if the human body is fully shown</li>
  <li>to segment the full human body into the four parts discussed earlier</li>
  </ul>
  <p>I don't know if it's better to focus on a <strong>body segmentation algorithm</strong> first, and then count if nothing is missing, like if in the picture there is a head, a torso, legs and feet, then it's a full body, or I should first classify if it's a full body picture than segment it.</p>
  <p>The first option seams easier, but it can be flawed because if there is two humans in the picture, it is possible that it can segment some body parts of one person and some of the other. Maybe I could first have a counting algorithm to count how many humans there is in the picture? But that also don't sound like a good idea.</p>
  <p>Anyway, I'm sorry for the huge question, but feel that it is a very specific problem and I should clarify as much as possible. Thank you for reading it.</p>
  
Tags: <neural-networks><machine-learning><deep-learning><classification><object-detection>
Title: How do I train a model to classify if it's a Full Human Body in the picture?
UserDisplayName: Igor Michetti
ThreadText: # How do I train a model to classify if it's a Full Human Body in the picture?
  
  (Asked by: username_0 on 2022-08-30)
  
  recently I started a personal project that uses some Machine Learning techniques in the process, so I'm currently collecting **human images** with a web scraper. I know that I can use some pre-trained models to verify if there is a human in the picture and segregate it from it's background using a mask algorithm. But besides that, I also need to filter only images with a full human body exposed, and alongside that it would be practical to segment the body into **head, torso, legs and feet**.
  
  **I want to know if anyone know a technique:**
  
  * to classify if the human body is fully shown
  * to segment the full human body into the four parts discussed earlier
  
  I don't know if it's better to focus on a **body segmentation algorithm** first, and then count if nothing is missing, like if in the picture there is a head, a torso, legs and feet, then it's a full body, or I should first classify if it's a full body picture than segment it.
  
  The first option seams easier, but it can be flawed because if there is two humans in the picture, it is possible that it can segment some body parts of one person and some of the other. Maybe I could first have a counting algorithm to count how many humans there is in the picture? But that also don't sound like a good idea.
  
  Anyway, I'm sorry for the huge question, but feel that it is a very specific problem and I should clarify as much as possible. Thank you for reading it.
  
  **Tags:** neural-networks, machine-learning, deep-learning, classification, object-detection
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-08-31. Score: 0 | Accepted answer
  
  First problem: I would start with training YOLOv5 model on two categories, full-body and partial-body. You would have to make your own dataset but since with yolo you usually use pretrained models, I guess 200 labeled samples (100 each category) would be enough. I'd recommend ultralytic's implementation of YOLOv5: <https://github.com/ultralytics/yolov5>
  
  As for second problem, this can be helpful: <https://github.com/kevinlin311tw/CDCL-human-part-segmentation>
  
  > **Comments:**
  > **username_0**: Thank you so much for your time username_1, this is very helpful.  
  
  ---
  
  