Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

change shufflenet model always shows LOADING #67

Open
cswwp opened this issue Nov 6, 2018 · 6 comments
Open

change shufflenet model always shows LOADING #67

cswwp opened this issue Nov 6, 2018 · 6 comments

Comments

@cswwp
Copy link

cswwp commented Nov 6, 2018

change shufflenet model always shows LOADING, the shufflenet pb model has tested on pc pass, anyone help me?
@machoji @ThomasGueldner @FullZing @jazzseow @northeastsquare

@cswwp
Copy link
Author

cswwp commented Nov 6, 2018

it show '_predictor = new caffe2::Predictor(_initNet, _predictNet)' crash in debug mode,

@cswwp
Copy link
Author

cswwp commented Nov 6, 2018

@spencial

@rivergold
Copy link

I met the same problem. Is there any solution?

@zhyj3038
Copy link

zhyj3038 commented Dec 5, 2018

same problem too!

@aa12356jm
Copy link

same problem too

@cnheider
Copy link

Using the mobile_exporter, and serialising the 'predict_net' given from the exportor seems to yield an invalid model and seems to be the source of the problem.

However serialising the caffe2 model directly yields a working model

  init_net, predict_net = mobile_exporter.Export(c2_workspace, c2_model, c2_model.external_input)


  # Let's also save the init_net and predict_net to a file that we will later use for running them on mobile
  with open(str(latest + '/init_net.pb'), "wb") as f:
    f.write(init_net.SerializeToString())


  with open(str(latest + '/predict_net.pb'), "wb") as f:
    f.write(c2_model.SerializeToString())

Context with a running app

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

No branches or pull requests

5 participants