Practicing using the Tensor-Flow library to Predict animal images.
- Import Dependencies
- Load the VGG19 model
- Define default image size for VGG19 and Xception
- Load the image and resize to default image size
- Preprocess image for model prediction
- Handles scaling and normalization for VGG19 and Xception
- Make Predctions
- Refactor above steps into reusable function
Open Google Colab https://colab.research.google.com/
- File
- Upload Notebook
- Run the Cells
Import the Dependencies, Tensor flow
- VGG19 model
- Load the image and resize to default image size
- Scaling and normalization for VGG19
- Making predictions
- Create a reusable function
- Predicting a Corgis(dog), image.
Import Dependencies
- Load the Xception model
- Load the image and resize to the input dimensions that Xception
- Refactor above steps into reusable function