Path: blob/master/site/en-snapshot/hub/tutorials/hrnet_semantic_segmentation.ipynb
25118 views
Copyright 2022 The TensorFlow Hub Authors.
Licensed under the Apache License, Version 2.0 (the "License");
HRNet based model for semantic segmentation
In this notebook, you will:
Choose and load one of the 17 pre-trained HRNet models on different semantic segmentation datasets
Run inference to extract features from the model backbone and predictions from the model head
Loading models from TensorFlow Hub
Here you can choose the pre-trained HRNet model to load, different models means a different training dataset used. All models have the same architecture, except for the model head, which has a different dimension based on the number of classes contained in the training dataset (dataset_output_classes). For more information about the different datasets we refer to the links above and the factors of influence dataset collection.
Loading an image and running inference
This is a demonstration on how to run inference for extracting features and predictions from an image. The image was taken from the scene150 dataset.
To perform inference on the datasets that were used during training we refer to the factors of influence dataset collection.