个人笔记 感谢指正
1.导入包
import tensorflow as tf
import os
import re
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
2.定义一个处理文件的类
class NodeLookup(object):
def __init__(self):
label_lookup_path = 'inception_model/imagenet
如下所示:
from __future__ import print_function
from __future__ import division
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import torchvision
from torchvision import datasets, models, transforms
import matplotlib.p