title: TensorFlow: Adding Class to Pre-trained Inception Model & Outputting Full Image Hierarchy
body: <p>Two questions:</p>
  
  <p>1) Does anyone know if I can add new image classes to the pre-trained Inception-v3 model?  For example, I wanted to train TensorFlow on a multitude of national flags, but I need to make sure that I can still recognize the images from the ImageNet hierarchy.  I realize that there is a way to wipe the top layer of Inception and completely retrain the model on my classes, but this very limiting and time consuming.</p>
  
  <p>2) Also, is there a way to output the entire hierarchy containing the tag that the image receives?  I wish to be able to not only see specifically what Inception tags the image as, but I want to see all of the more broad 'synsets' from ImageNet.  For example, instead of just seeing the output "toy poodle", I am interested in "Animal/Domesticated Animal/Dog/Poodle/toy poodle".</p>
  
  <p>Any responses are greatly appreciated.</p>