Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Use opencv-python
to read the RGB image located at image_file_path
.”
A block of code is set as follows:
def build_fe_model():
""""Create feature extraction model from the pre-trained model ResNet50V2"""
# create the pre-trained part of the network, excluding FC layers
base_model = tf.keras.applications.MobileNetV3Small(
Any command-line input or output is written as follows:
import tensorflow.keras
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
import io
image = Image.open(io.BytesIO(response.content))
image.show()
Tips or important notes
Appear like this.