【发布时间】:2021-04-09 09:30:15
【问题描述】:
我在这里尝试运行 Inception 方法,但随后收到错误消息 ---
我的代码如下---
from IPython.display import Image, display
Image('images/07_inception_flowchart.png')
# Classes and functions for loading and using the Inception model
import inception
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import os
import tensorflow as tf
tf.__version__
# Download the Inception model
inception.data_dir = 'inception/'
def maybe_download():
"""
Download the Inception model from the internet if it does not already
exist in the data_dir. The file is about 85 MB.
"""
print("Downloading Inception v3 Model ...")
download.maybe_download_and_extract(url=data_url, download_dir=data_dir)
inception.maybe_download()
但收到错误消息---
AttributeError Traceback (most recent call last)
<ipython-input-23-a941731aed67> in <module>()
----> 1 inception.maybe_download()
AttributeError: module 'inception' has no attribute 'maybe_download'
请尽快帮助我
非常感谢
【问题讨论】:
标签: python-3.x machine-learning artificial-intelligence