MMdnn icon indicating copy to clipboard operation
MMdnn copied to clipboard

Error when using the converted pytorch model

Open kar1989 opened this issue 5 years ago • 6 comments

I get the following error when processing data through pytorch model. Converted from mxnet to pytorch

NameError: global name '_KitModel__weights_dict' is not defined

kar1989 avatar Apr 02 '19 07:04 kar1989

Only when you could describe the problem clearly, other may help with the issue @kar1989 , please take your time to elaborate on the issue. THX!

pmixer avatar Apr 03 '19 01:04 pmixer

Sorry please find detailed information as below, Environment: Ubuntu 16.06 Pytorch version: 1.0.1.post2 Original model in: Mxnet' Converted model to 'Pytorch'

When I try to evaluate my data through the model, I get this error. "NameError: global name '_KitModel__weights_dict' is not defined"

I loaded the model according to instruction given in https://github.com/Microsoft/MMdnn/blob/72529a9f6b17f7298eacb7b2a0dae6dc5b9ce408/mmdnn/conversion/pytorch/README.md

kar1989 avatar Apr 03 '19 01:04 kar1989

@kar1989 hi, would you please try mxnet to IR first before porting it to pytorch? I'm also new to mmdnn and sometimes need to modify the code to meet the needs as different versions of dl frameworks may use different API.

pmixer avatar Apr 04 '19 03:04 pmixer

How you are fix the problem, I meet the seem issue, but I can't handle it ! NameError: name '_KitModel__weights_dict' is not defined I am also convert mxnet model to pytorch model

MengDebin18 avatar Jun 03 '19 16:06 MengDebin18

same problem. Anyone share the solution, please.

Jar7 avatar Jul 25 '19 04:07 Jar7

same problem, how to solve? @microsoftopensource @kar1989 @msftdata @msftgits

Light-- avatar Jun 10 '20 14:06 Light--