microsoft / MMdnn

MMdnn is a set of tools to help users inter-operate among different deep learning frameworks. E.g. model conversion and visualization. Convert models between Caffe, Keras, MXNet, Tensorflow, CNTK, PyTorch Onnx and CoreML.
MIT License
5.78k stars 968 forks source link

Tensorflow inception to Caffe #384

Open juniel03 opened 5 years ago

juniel03 commented 5 years ago

Platform (like ubuntu 16.04/win10): win 10

Python version: python 3.6.2

Source framework with version (like Tensorflow 1.4.1 with GPU): Tensorflow 1.10 with GPU

Destination framework with version (like CNTK 2.3 with GPU): Caffe

Pre-trained model path (webpath or webdisk path):

Running scripts: mmconvert -sf tensorflow -iw tf_files/inceptionrounded_graph.pb --inNodeName input --inputShape 299,299,3 --dstNodeName final_output -df caffe -om gender

I am getting an error NameError: name 'tf' is not defined

Please Help Thank you very much

juniel03 commented 5 years ago

Resolved the Issue by downgrading to tensorflow 1.8 but then i get this error: assert False AssertionError

kitstar commented 5 years ago

Hi @juniel03 , could you provide the whole error log for us to debug? Thanks.

juniel03 commented 5 years ago

hello good day to you,

here is the error code [image: image.png]

Thank you very much for replying.

On Thu, Aug 30, 2018 at 7:24 PM Cheng(Kit) CHEN notifications@github.com wrote:

Hi @juniel03 https://github.com/juniel03 , could you provide the whole error log for us to debug? Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/MMdnn/issues/384#issuecomment-417285244, or mute the thread https://github.com/notifications/unsubscribe-auth/AoCRFL6Q94sLioib0omLqpYAgR5EfosAks5uV8tZgaJpZM4WQ-aL .

namizzz commented 5 years ago

Hi @juniel03 , we don't receive the whole error log. Please send it again

juniel03 commented 5 years ago

here it is Tensorflow has not supported operator [PlaceholderWithDefault] with name [input/BottleneckInputPlaceholder]. Traceback (most recent call last): File "c:\users\blue solutions\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\users\blue solutions\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\BLUE SOLUTIONS\AppData\Local\Programs\Python\Python36\Scripts\mmconvert.exe__main__.py", line 9, in File "c:\users\blue solutions\appdata\local\programs\python\python36\lib\site-packages\mmdnn\conversion_script\convert.py", line 102, in _main ret = convertToIR._convert(ir_args) File "c:\users\blue solutions\appdata\local\programs\python\python36\lib\site-packages\mmdnn\conversion_script\convertToIR.py", line 115, in _convert parser.run(args.dstPath) File "c:\users\blue solutions\appdata\local\programs\python\python36\lib\site-packages\mmdnn\conversion\common\DataStructure\parser.py", line 22, in run self.gen_IR() File "c:\users\blue solutions\appdata\local\programs\python\python36\lib\site-packages\mmdnn\conversion\tensorflow\tensorflow_frozenparser.py", line 349, in gen_IR self.rename_UNKNOWN(current_node) File "c:\users\blue solutions\appdata\local\programs\python\python36\lib\site-packages\mmdnn\conversion\tensorflow\tensorflow_frozenparser.py", line 410, in rename_UNKNOWN assert False AssertionError

namizzz commented 5 years ago

Hi @juniel03 ,as you can see from the error log, tensorflow_frozenparser has not supported operator [PlaceholderWithDefault] ,could you please send your model file for us to implement?

om777 commented 5 years ago

The same issue is for Floor