from PIL import Image from einops import rearrange import numpy as np import segmentation_models_pytorch as smp import torch