American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

8 PM – AI / Machine Learning – Joel

September 19 @ 8:00 pm - 9:00 pm

Today We Did
  1. We continued with Cat and Dog Breed Classification project.
  2. We were able to fine tune our RESNET34 with our data and create a new model cat_dog_breed_model.
Homework
  1. Upload several cat and dog images into your kaggle project.
  2. Add code that would utilize cat_dog_breed_model to predict the breed name of cat or dog image that you already uploaded. This is very similar to the code that you did in the Cat vs Dog classification project below
    1. file_name = "/kaggle/input/gamas-pet-file-10000/Screenshot 2025-08-01 at 7.23.20PM.png"
      prediction = learn.predict(file_name)
      print(prediction)
      
      label = ""
      if prediction[0] == "True":
         label = "CAT"
      else:
         label = "DOG"
      
      img = PILImage.create(file_name)
      img.show(title=label)

Details

Date:
September 19
Time:
8:00 pm - 9:00 pm