PaddlePaddle version:2.1.0
tensorflow:1.14.0
python:3.6.9
OS:Linux 18.04
I randomly generated a ten levels model. When the .pb file of the generated model is converted to the paddlepaddle supported model, it prompts UserWarning. After conversion, there is also lack of a model.pdiparams file . How can I solve this problem?
generated model:
import keras
from keras.layers import Input,AveragePooling2D,GaussianNoise,Softmax,ReLU, ActivityRegularization,LeakyReLU, ReLU,Activation
from keras.models import Sequential,Model
import numpy as np
from keras.optimizers import SGD
inputs = Input(shape=(32,32,3))
x1 = AveragePooling2D(pool_size=(2, 2))(inputs)
x2 = GaussianNoise(stddev=0.3)(x1)
x3 = Softmax(axis=-1)(x2)
x4 = ReLU(max_value=None, negative_slope=0.0, threshold=0.0)(x3)
x5 = ActivityRegularization(l1=0.0, l2=0.0)(x4)
x6 = ActivityRegularization(l1=0.0, l2=0.0)(x5)
x7 = GaussianNoise(stddev=0.3)(x6)
x8 = Activation(activation='tanh')(x7)
x9 = ReLU(max_value=None, negative_slope=0.0, threshold=0.0)(x4)
x10 = Activation(activation='tanh')(x9)
model2 = Model(inputs=inputs,outputs=[x8,x10])
model2.summary()
model2.save('/home/jie/2021-5-23-20model-test/generated-model/10layer-one-two2/10layer-one-two2.h5')
Conversion command line:
x2paddle --framework=tensorflow --model='/root/pbFile/10layer-one-two2.pb' --save_dir=/root/paddleModelFile2-1-0/10layer-one-two2 --paddle_type dygraph
Prompt information:
3条答案
按热度按时间eqzww0vc1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
klsxnrf12#
Can you send 10layer-one-two2.pb to sunyanfang01@baidu.com? We will confirm if there are any bugs.
dbf7pr2w3#
I sent the 10layer-one-two2.pb file to you using jiezhang2183@gmail.com this mailbox, please check it,thank you