Answers.Body: <p>This is really a semantic segmentation problem if OP wants to pinpoint the weeds.</p>
  <p>If OP wants to have such a segmentation he will need to hand segment every.single picture.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-15T01:54:24.343Z
Answers.Text: Maybe you should explicitly say that "semantic segmentation" is about classifying pixels (maybe provide an image that illustrates it) and consequently "segmenting" the objects in the image. Of course, labelling each pixel will be a lot of labor, so maybe you should also bring this up.
Answers.UserDisplayName: nbro
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-15T01:45:37.557Z
Answers.LastActivityDate: 2020-09-15T01:45:37.557Z
Answers.UserDisplayName: FourierFlux
Answers.Body: <p>If each photo is intended to show a photo of weed or crops you should give one label. If your task is different where you also try to localize weed or crops in the image, then you need to label accordingly. My understanding is you are trying to do the first case, therefore, there should be one label for each image.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-15T01:59:02.027Z
Answers.Text: I am trying to pinpoint the location of the weeds in the field. Therefore, should I using something like the labelImg software to create Pascal VOC samples of the images?
Answers.UserDisplayName: sneeze_shiny
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-15T02:16:49.970Z
Answers.Text: I think so. The following link discusses about preprocessing training images for YOLO , you can follow the same. It will be really interesting to see how well your model works for this task. https://www.arunponnusamy.com/preparing-custom-dataset-for-training-yolo-object-detector.html
Answers.UserDisplayName: gihan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-15T01:41:13.167Z
Answers.LastActivityDate: 2020-09-15T01:41:13.167Z
Answers.UserDisplayName: gihan
Body: <p>I have roughly 30,000 images of two categories, which are 'crops' and 'weeds.' An example of what I have can be found below:</p>
  <p><a href="https://i.sstatic.net/ZIwtM.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZIwtM.jpg" alt="enter image description here" /></a></p>
  <p>The goal will use my training images to detect weeds among crops, given an orthomosaic GIS image of a given field. I guess you could say that I'm trying to detect certain objects in the field.</p>
  <p>As I'm new to deep learning, how would one go about generating training labels for this task? Can I just label the entire photo as a 'weed' using some type of text file, or do I actually have to draw bounding boxes (around weeds) on each image that will be used for training? If so, is there an easier way than going through all 30,000 of my images?</p>
  <p>I'm very new to this, so any specific details would really help a lot!</p>
  
Tags: <deep-learning><object-detection>
Title: How do I label images for deep learning classification?
UserDisplayName: sneeze_shiny
ThreadText: # How do I label images for deep learning classification?
  
  (Asked by: username_0 on 2020-09-15)
  
  I have roughly 30,000 images of two categories, which are 'crops' and 'weeds.' An example of what I have can be found below:
  
  [![enter image description here](https://i.sstatic.net/ZIwtM.jpg)](https://i.sstatic.net/ZIwtM.jpg)
  
  The goal will use my training images to detect weeds among crops, given an orthomosaic GIS image of a given field. I guess you could say that I'm trying to detect certain objects in the field.
  
  As I'm new to deep learning, how would one go about generating training labels for this task? Can I just label the entire photo as a 'weed' using some type of text file, or do I actually have to draw bounding boxes (around weeds) on each image that will be used for training? If so, is there an easier way than going through all 30,000 of my images?
  
  I'm very new to this, so any specific details would really help a lot!
  
  **Tags:** deep-learning, object-detection
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2020-09-15. Score: 2 | Accepted answer
  
  If each photo is intended to show a photo of weed or crops you should give one label. If your task is different where you also try to localize weed or crops in the image, then you need to label accordingly. My understanding is you are trying to do the first case, therefore, there should be one label for each image.
  
  > **Comments:**
  > **username_0**: I am trying to pinpoint the location of the weeds in the field. Therefore, should I using something like the labelImg software to create Pascal VOC samples of the images?  
  > **username_3**: I think so. The following link discusses about preprocessing training images for YOLO , you can follow the same. It will be really interesting to see how well your model works for this task. https://www.arunponnusamy.com/preparing-custom-dataset-for-training-yolo-object-detector.html  
  
  ---
  
  ### Answer by username_1 on 2020-09-15. Score: 2
  
  This is really a semantic segmentation problem if OP wants to pinpoint the weeds.
  
  If OP wants to have such a segmentation he will need to hand segment every.single picture.
  
  > **Comments:**
  > **username_2**: Maybe you should explicitly say that "semantic segmentation" is about classifying pixels (maybe provide an image that illustrates it) and consequently "segmenting" the objects in the image. Of course, labelling each pixel will be a lot of labor, so maybe you should also bring this up.  
  
  ---
  
  