AdvancedEAST icon indicating copy to clipboard operation
AdvancedEAST copied to clipboard

Unable to convert .h5 file to .pb file,TypeError: ('Keyword argument not understood:', 'interpolation')

Open globalmaster opened this issue 5 years ago • 10 comments

Hi, I train this model and I'm trying to convert "east_model_3T736.h5" to .pb file. I run: python3 keras_to_tensorflow.py --input_model="/media/jack/code/clion_kdevelop/OCR/keras_to_tensorflow/east_model_3T256.h5" --output_model="/media/jack/code/clion_kdevelop/OCR/keras_to_tensorflow/east_model__3T736.pb"

and get this error: TypeError: ('Keyword argument not understood:', 'interpolation') How can I solve it? Can you help @huoyijie

globalmaster avatar Mar 22 '19 09:03 globalmaster

@globalmaster Have you converted "east_model_3T736.h5" to .pb file successfully?

wulouzhu avatar Aug 27 '19 11:08 wulouzhu

I have solved it

wulouzhu avatar Aug 29 '19 03:08 wulouzhu

我已经解决了

怎么解决的,可以说详细写吗

wangwangww avatar Sep 16 '19 08:09 wangwangww

我遇到的问题跟他提出的不一样,但我最后转换成功了,需要把自己自定义的loss加进去,你可以去Keras_to_tensorflow的github 查找相关问题 @wangwangww

wulouzhu avatar Sep 18 '19 06:09 wulouzhu

我运行keras_to_tensorflow,最后保存ValueError: Unknown loss function:quad_loss,好像和你一样,能不能加个QQ,我想详细了解一下。@wulouzhu

wangwangww avatar Sep 18 '19 07:09 wangwangww

你好,很感谢你的回复,我试了一下Keras_to_tensorflow,我没有改代码,但最后也是报错ValueError: Unknown loss function:quad_loss,可以加个QQ详细向你了解一下吗,怎么把自己定义的loss加进去

------------------ 原始邮件 ------------------ 发件人: "wulouzhu"<[email protected]>; 发送时间: 2019年9月18日(星期三) 下午2:57 收件人: "huoyijie/AdvancedEAST"<[email protected]>; 抄送: "w.w"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [huoyijie/AdvancedEAST] Unable to convert .h5 file to .pb file,TypeError: ('Keyword argument not understood:', 'interpolation') (#63)

我遇到的问题跟他提出的不一样,但我最后转换成功了,需要把自己自定义的loss加进去,你可以去Keras_to_tensorflow的github 查找相关问题 @wangwangww

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

wangwangww avatar Sep 18 '19 07:09 wangwangww

@wangwangww 加微信吧,微信号ZDHWLZ

wulouzhu avatar Sep 18 '19 08:09 wulouzhu

@wulouzhu @globalmaster Do either of you have a east_model_3T736.h5 file you could share? I need to convert it to a tensorflow.js format. I can only find the east_model_weights_3T736.h5 file.

camhart avatar Dec 14 '19 00:12 camhart

@camhart Hi. where did u find the east_model_weights_3T736.h5 file? There seems to be nothing in my 'saved_mode' folder..

shijiew1 avatar Apr 02 '20 09:04 shijiew1

你好,很感谢你的回复,我试了一下Keras_to_tensorflow,我没有改码,但最后也是报错进去 ------------------ 原始邮件 ------------------ 发件人: "wulouzhu"<[email protected]>; 发送时间: 2019年9月18日(星期三) 下午2:57 收件人: "huoyijie/AdvancedEAST"<[email protected]>; 抄送: "w.w"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [huoyijie/AdvancedEAST] Unable to convert .h5 file to .pb file,TypeError: ('Keyword argument not understood:', 'interpolation') (#63) 我遇到的问题跟他提出的不一样,但我最后转换成功了,需要把自己自定义的loss加进去,你可以去Keras_to_tensorflow的github 查找相关问题 @wangwangww — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

我运行keras_to_tensorflow,最后保存值错误:未知丢失函数:quad_loss,好像和你一样,能不能加个QQ,我想详细了解一下。@wulouzhu

我也遇到了同样的问题,请问你解决了么,能够加个qq请教一下,我的qq是1850061652

first-wording avatar Jul 02 '20 05:07 first-wording