InceptionV3.py
def isMix_mutt(self, top5_breeds_prob, top5_labels):
        """
        Decide whether if the detected dog/human is resemble to mix mutt dog breeds or not.
        If the difference of top 1 probability and top 2 probability is less than 0.1, it will be classified as
        mix mutt.
        Parameters:
            top5_breeds_prob: top5 dog breed probabilities that is predicted by the model
            top5_labels: top5 dog breed labels that are corresponding to top5 dog breed idx
        Return:
            None
        """
        if (top5_breeds_prob[0] - top5_breeds_prob[1] <= 0.1):
            print("You look like", top5_labels[0], '&', top5_labels[1] ,"mixed breed dog!")
        else:
            print("You look like", top5_labels[0], "!")

        Decide whether if the detected dog/human is resemble to mix mutt dog breeds or not.
        If the difference of top 1 probability and top 2 probability is less than 0.1, it will be classified as
        mix mutt.
        Parameters:
            top5_breeds_prob: top5 dog breed probabilities that is predicted by the model
            top5_labels: top5 dog breed labels that are corresponding to top5 dog breed idx
        Return:
            None
        
Decide whether if the detected dog/human is resemble to mix mutt dog breeds or not.
If the difference of top 1 probability and top 2 probability is less than 0.1, it will be classified as
mix mutt.
Decide whether if the detected dog / human is resemble to mix mutt dog breeds or not . If the difference of top 1 probability and top 2 probability is less than 0 . 1 it will be classified as mix mutt .
def isMix_mutt(self, top5_breeds_prob, top5_labels):
        if (top5_breeds_prob[0] - top5_breeds_prob[1] <= 0.1):
            print("You look like", top5_labels[0], '&', top5_labels[1] ,"mixed breed dog!")
        else:
            print("You look like", top5_labels[0], "!")
def isMix_mutt ( self , top5_breeds_prob , top5_labels ) : if ( top5_breeds_prob [ 0 ] - top5_breeds_prob [ 1 ] <= 0.1 ) : print ( "You look like" , top5_labels [ 0 ] , '&' , top5_labels [ 1 ] , "mixed breed dog!" ) else : print ( "You look like" , top5_labels [ 0 ] , "!" )
Decide whether if the detected dog/human is resemble to mix mutt dog breeds or not.
Decide whether if the detected dog / human is resemble to mix mutt dog breeds or not .
"""
        Decide whether if the detected dog/human is resemble to mix mutt dog breeds or not.
        If the difference of top 1 probability and top 2 probability is less than 0.1, it will be classified as
        mix mutt.
        Parameters:
            top5_breeds_prob: top5 dog breed probabilities that is predicted by the model
            top5_labels: top5 dog breed labels that are corresponding to top5 dog breed idx
        Return:
            None
        """
self
top5_breeds_prob
top5 dog breed probabilities that is predicted by the model
top5 dog breed probabilities that is predicted by the model
top5_labels
top5 dog breed labels that are corresponding to top5 dog breed idx
top5 dog breed labels that are corresponding to top5 dog breed idx