April 2020
Intermediate to advanced
438 pages
12h 2m
English
Run the following steps to implement semantic segmentation with a pretrained fully convolutional network (FCN) model:
lines = open('models/pascal-classes.txt').read().strip().split("\n")classes, colors = [], []for line in lines: words = line.split(' ') classes.append(words[0]) colors.append(list(map(int, words[1:])))colors = np.array(colors, dtype="uint8")legend = np.zeros(((len(classes) * 25) + 25, 300, 3), dtype="uint8")# iterate over the class names and colors and ...Read now
Unlock full access