简体   繁体   English

我如何安装初始模型?

[英]how do i install inception model?

I used this link for downloading inception model but it should be this error:我使用此链接下载初始模型,但应该是这个错误:

$ pip install http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz
Collecting 


100% |################################| 88.9MB 491kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

  File "<string>", line 1, in <module>
  File "C:\Users\Waleed\Anaconda3\envs\py35_tf_cpu\lib\tokenize.py", line 454, in open

    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory:
'C:\\Users\\Waleed\\AppData\\Local\\Temp\\pip-cokfajr0-build\\setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Waleed\AppData\Local\Temp\pip-cokfajr0-build\

How do I install the inception model?如何安装初始模型?

Don't install the inception network using pip.不要使用 pip 安装初始网络。 As the error states, there is no setup.py file because it is not a Python egg, it's just a bunch of files:正如错误所述,没有setup.py文件,因为它不是 Python 蛋,它只是一堆文件:

$ tar xzf inception-2015-12-05.tgz
$ ls 
LICENSE
classify_image_graph_def.pb
cropped_panda.jpg
imagenet_2012_challenge_label_map_proto.pbtxt
imagenet_synset_to_human_label_map.txt
inception-2015-12-05.tgz

A better way to build and use the inception model is to get it (or one of the many other pre-trained TensorFlow models) from the tensorflow/models github repository .构建和使用初始模型的更好方法是从tensorflow/models github repository获取它(或许多其他预训练的 TensorFlow 模型之一)。 There are instructions specifically for building the inception model .有专门用于构建初始模型的说明 You'll need Bazel .你需要Bazel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM