Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i directly use the .pb file? #2

Open
AmyWan opened this issue Feb 14, 2019 · 3 comments
Open

can i directly use the .pb file? #2

AmyWan opened this issue Feb 14, 2019 · 3 comments

Comments

@AmyWan
Copy link

AmyWan commented Feb 14, 2019

hi,I have used your convert.py to change ckpt .Can I directly put in android?When i change it ,I find the file size smaller than the old.Is there wrong?In checkpoint ,model.data-of-0001 is 250M,model.meta is 600K,the changed pd is 700k?I doubt it ?

@CeeBeeEh
Copy link

CeeBeeEh commented Jul 8, 2019

Same issue.

saved_model.pb - 1.1MB
variables/variables.data-00000-of-00001 = 236.3MB

Not sure what the issue might be.

@ucasiggcas
Copy link

have the same question

with tf.gfile.GFile('saved_model.pb', 'rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())

wrong

File "D:/python/pycode/mss/read_pb.py", line 7, in <module> graph_def.ParseFromString(f.read()) google.protobuf.message.DecodeError: Error parsing message

@sliawatimena
Copy link

Dear all,

Would you mind to give example how to use the convert.py
I have EfficientDet-d0 output from ModelArts (HuaweiCloud).
model.ckpt-20000.data-00000-of-00001 (30.8 MB)
model.ckpt-20000.index (47.5 KB)
model.ckpt-20000.meta (8.7 MB)
timeline-20000.json (5.8 MB)
and other files.

convert.py --checkpoint CHECKPOINT --model MODEL --out-path MODEL_OUT

Thank you very much in advance.

Warmest Regards,
Suryadi
convert.py --checkpoint CHECKPOINT --model MODEL --out-path MODEL_OUT

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

No branches or pull requests

4 participants