PyTorch - MAE(Masked Autoencoders)推理脚本

MAE推理脚本:

  • 需要安装:pip install timm==0.4.5
  • 需要下载:mae_visualize_vit_base.pth,447M

PyTorch - MAE(Masked Autoencoders)推理脚本_第1张图片

源码:

#!/usr/bin/env python
# -- coding: utf-8 --
"""
Copyright (c) 2022. All rights reserved.
Created by C. L. Wang on 2022/10/21
"""

import os

import matplotlib.pyplot as plt
import numpy as np
import torch

你可能感兴趣的:(深度学习,pytorch,python,深度学习)