Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save model as pptx file #6

Open
ngenne opened this issue Sep 4, 2018 · 1 comment
Open

Unable to save model as pptx file #6

ngenne opened this issue Sep 4, 2018 · 1 comment

Comments

@ngenne
Copy link

ngenne commented Sep 4, 2018

Hi there,

Another error to declare:

  File "C:\Users\ngenne\Desktop\PRIVE-Deep-Learning\NIH\chest-xray\convnet_drawer\pptx_util.py", line 63, in save_model_to_pptx
    for feature_map in model.feature_maps + model.layers:

AttributeError: 'Sequential' object has no attribute 'feature_maps'

Code is below:

from convnet_drawer.convnet_drawer import Model, Conv2D, MaxPooling2D, Flatten, Dense
from convnet_drawer.keras_util import convert_drawer_model
from convnet_drawer.matplotlib_util import save_model_to_file
from convnet_drawer.pptx_util import save_model_to_pptx
from keras.models import Sequential
from convnet_drawer.keras_models import AlexNet

classifier = Sequential()

classifier = Model(input_shape=(1024, 1024, 1))
classifier.add(Conv2D(512, (256,256), strides=(4, 4), padding="same"))
classifier.add(MaxPooling2D(pool_size=(2, 2)))
classifier.add(Conv2D(512, (256,256), strides=(4, 4), padding="same"))
classifier.add(Conv2D(512, (256,256), strides=(4, 4), padding="same"))
classifier.add(MaxPooling2D(pool_size=(2, 2)))
classifier.add(Flatten())
classifier.add(Dense(4096))
classifier.add(Dense(4096))
classifier.add(Dense(1000))

classifier = AlexNet.get_model()
classifier_seq = convert_drawer_model(classifier)

classifier.save_model_to_pptx(classifier, "classifier.pptx")

Could you help me please?

@yu4u
Copy link
Owner

yu4u commented Sep 5, 2018

Please refer to #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants