Answers.Body: <p>To help you understand the feasibility of your project these posts could be a good start:
  <a href="https://datascience.stackexchange.com/questions/13181/how-many-images-per-class-are-sufficient-for-training-a-cnn">https://datascience.stackexchange.com/questions/13181/how-many-images-per-class-are-sufficient-for-training-a-cnn</a><a href="https://datascience.stackexchange.com/questions/13181/how-many-images-per-class-are-sufficient-for-training-a-cnn">enter link description here</a></p>
  
  <p><a href="https://stats.stackexchange.com/questions/226672/how-few-training-examples-is-too-few-when-training-a-neural-network">https://stats.stackexchange.com/questions/226672/how-few-training-examples-is-too-few-when-training-a-neural-network</a></p>
  
  <p>That being said, the short answer would be it depends. It depends how precise you want to be, what is the difficulty of the task, the infrastructure you have for the training etc.</p>
  
  <p>For the images, you should not worry, you could start with the ImageNet dataset:
  For construction and buildings:
  <a href="http://www.image-net.org/explore?wnid=n04341686" rel="nofollow noreferrer">http://www.image-net.org/explore?wnid=n04341686</a></p>
  
  <p>For mosquees:
  <a href="http://www.image-net.org/synset?wnid=n03788195" rel="nofollow noreferrer">http://www.image-net.org/synset?wnid=n03788195</a></p>
  
  <p>You can then use data augmentation techniques to enhance the size of you training set. Here is a library I have used in the past which helped me greatly to achieve this task: <a href="https://github.com/aleju/imgaug" rel="nofollow noreferrer">https://github.com/aleju/imgaug</a></p>
  
  <p>Hope that helps!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T14:48:42.590Z
Answers.LastActivityDate: 2019-09-13T14:48:42.590Z
Answers.UserDisplayName: Dr. H. Lecter
Body: <p>A convolutional neural network (CNN) can easily predict the class of an object in an image. </p>
  
  <p>Can a CNN distinguish the Pisa Tower from other buildings, or Hagia Sophia from other mosques easily? If it can, how many training images can be sufficient? Do I need thousands of training images of that specific thing to distinguish it?</p>
  
  <p>(This is a term project recommendation about deep neural networks, so I need to understand its feasibility.)</p>
  
Tags: <deep-learning><convolutional-neural-networks><computer-vision>
Title: How well can a CNN distinguish an object from its class?
UserDisplayName: Atreidex
ThreadText: # How well can a CNN distinguish an object from its class?
  
  (Asked by: username_0 on 2019-09-12)
  
  A convolutional neural network (CNN) can easily predict the class of an object in an image.
  
  Can a CNN distinguish the Pisa Tower from other buildings, or Hagia Sophia from other mosques easily? If it can, how many training images can be sufficient? Do I need thousands of training images of that specific thing to distinguish it?
  
  (This is a term project recommendation about deep neural networks, so I need to understand its feasibility.)
  
  **Tags:** deep-learning, convolutional-neural-networks, computer-vision
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-09-13. Score: 0 | Accepted answer
  
  To help you understand the feasibility of your project these posts could be a good start:
  <https://datascience.stackexchange.com/questions/13181/how-many-images-per-class-are-sufficient-for-training-a-cnn>[enter link description here](https://datascience.stackexchange.com/questions/13181/how-many-images-per-class-are-sufficient-for-training-a-cnn)
  
  <https://stats.stackexchange.com/questions/226672/how-few-training-examples-is-too-few-when-training-a-neural-network>
  
  That being said, the short answer would be it depends. It depends how precise you want to be, what is the difficulty of the task, the infrastructure you have for the training etc.
  
  For the images, you should not worry, you could start with the ImageNet dataset:
  For construction and buildings:
  <http://www.image-net.org/explore?wnid=n04341686>
  
  For mosquees:
  <http://www.image-net.org/synset?wnid=n03788195>
  
  You can then use data augmentation techniques to enhance the size of you training set. Here is a library I have used in the past which helped me greatly to achieve this task: <https://github.com/aleju/imgaug>
  
  Hope that helps!
  
  
  ---
  
  