• 大小: 112KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-07
  • 语言: Python
  • 标签: image  qualit  

资源简介

图像质量评估,对一张图像进行等级评估打分。使用python

资源截图

代码片段和文件信息

# Code derived from tensorflow/tensorflow/models/image/imagenet/classify_image.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import os.path
import sys
import tarfile

import numpy as np
from six.moves import urllib
import tensorflow as tf
import glob
import scipy.misc
import math
import sys

MODEL_DIR = ‘/tmp/imagenet‘
DATA_URL = ‘http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz‘
softmax = None

# Call this function with list of images. Each of elements should be a 
# numpy array with values ranging from 0 to 255.
def get_inception_score(images splits=10):
  assert(type(images) == list)
  assert(type(images[0]) == np.ndarray)
  assert(len(images[0].shape) == 3)
  assert(np.max(images[0]) > 10)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-12 13:16  Inception-Score-master\
     文件        1528  2017-12-12 13:16  Inception-Score-master\README.md
     文件       36463  2017-12-12 13:16  Inception-Score-master\cifar10.png
     目录           0  2017-12-12 13:16  Inception-Score-master\data\
     文件         158  2017-12-12 13:16  Inception-Score-master\data\details.txt
     文件        2035  2017-12-12 13:16  Inception-Score-master\data\img0.png
     文件        2461  2017-12-12 13:16  Inception-Score-master\data\img1.png
     文件        2105  2017-12-12 13:16  Inception-Score-master\data\img10.png
     文件        2072  2017-12-12 13:16  Inception-Score-master\data\img11.png
     文件        2502  2017-12-12 13:16  Inception-Score-master\data\img12.png
     文件        2227  2017-12-12 13:16  Inception-Score-master\data\img13.png
     文件        1985  2017-12-12 13:16  Inception-Score-master\data\img14.png
     文件        2574  2017-12-12 13:16  Inception-Score-master\data\img15.png
     文件        2119  2017-12-12 13:16  Inception-Score-master\data\img16.png
     文件        2295  2017-12-12 13:16  Inception-Score-master\data\img17.png
     文件        2193  2017-12-12 13:16  Inception-Score-master\data\img18.png
     文件        2253  2017-12-12 13:16  Inception-Score-master\data\img19.png
     文件        2643  2017-12-12 13:16  Inception-Score-master\data\img2.png
     文件        2388  2017-12-12 13:16  Inception-Score-master\data\img20.png
     文件        2205  2017-12-12 13:16  Inception-Score-master\data\img21.png
     文件        2054  2017-12-12 13:16  Inception-Score-master\data\img22.png
     文件        2470  2017-12-12 13:16  Inception-Score-master\data\img23.png
     文件        2373  2017-12-12 13:16  Inception-Score-master\data\img24.png
     文件        2693  2017-12-12 13:16  Inception-Score-master\data\img25.png
     文件        2451  2017-12-12 13:16  Inception-Score-master\data\img26.png
     文件        2148  2017-12-12 13:16  Inception-Score-master\data\img27.png
     文件        2457  2017-12-12 13:16  Inception-Score-master\data\img28.png
     文件        2438  2017-12-12 13:16  Inception-Score-master\data\img29.png
     文件        2078  2017-12-12 13:16  Inception-Score-master\data\img3.png
     文件        2315  2017-12-12 13:16  Inception-Score-master\data\img4.png
     文件        2388  2017-12-12 13:16  Inception-Score-master\data\img5.png
............此处省略5个文件信息

评论

共有 条评论