HOME/Articles/

matplotlib example pspnet imports (snippet)

Article Outline

Python matplotlib example 'pspnet imports'

Modules used in program:

  • import tensorflow as tf
  • import cv2
  • import matplotlib.pyplot as plt
  • import os
  • import numpy as np

python pspnet imports

Python matplotlib example: pspnet imports

import numpy as np
import os
import matplotlib.pyplot as plt
import cv2
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.layers import Convolution2D,BatchNormalization,ReLU,LeakyReLU,Add,Activation
from tensorflow.keras.layers import GlobalAveragePooling2D,AveragePooling2D,UpSampling2D