How to create a mmap-able model from the output_graph.pb file

I really cannot help you for that, the error sugests that the binary is not here, but this is your system, I cannot do anything.

After download, you have to add executable permission for the file:
chmod +x convert_graphdef_memmapped_format

Then you can invoke the local command as:
./convert_graphdef_memmapped_format <your args>

4 Likes

How to use convert_graphdef_memmapped_format_lib.dms file in macOS ???

“convert_graphdef_memmapped_format.dms --in_graph=output_graph.pb --out_graph=output_graph.pbmm”

That’s the same as on any unix system, as explained above. I don’t know where you get convert_graphdef_memmapped_format_lib.dms from, it’s convert_graphdef_memmapped_format

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

@inforahul92 Well, I’m sorry, but this link is valid, and produces convert_graphdef_memmapped_format as expected. Now, if you are on macOS, then it’s not the proper link, and using util/taskcluster.py as documented should produce you this link https://index.taskcluster.net/v1/task/project.deepspeech.tensorflow.pip.master.osx/artifacts/public/convert_graphdef_memmapped_format

It might be possible that you have to rename to .gz and then gunzip before use.

No luck with this hack :frowning:

“no luck” is not really helpful: you report “issues”, refer to a filename that makes no sense, but you share no error at all. I don’t use macOS, I can’t help you if you don’t give more context.

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

I just gave you the proper link above. It seems there’s a regression in the code and the url you report here is wrong. Hence 404.

1 Like

Issue resolved now,
The problem was with safari browser. Whenever I am opening your given URL “https://index.taskcluster.net/v1/task/project.deepspeech.tensorflow.pip.master.osx/artifacts/public/convert_graphdef_memmapped_format” in Safari it is downloading convert_graphdef_memmapped_format file in .dms format. Then I tried the same url into chrome browser and it is downloading convert_graphdef_memmapped_format file in the same format what I was expecting.

(deepspeech_env) Rahuls-MacBook-Pro-2:DeepSpeech-master rahulsharma$ ./convert_graphdef_memmapped_format --in_graph=/Users/rahulsharma/Documents/Tuple_Work/Speech/DeepSpeech-master/output_graph.pb --out_graph=/Users/rahulsharma/Documents/Tuple_Work/Speech/DeepSpeech-master/pbmm_file_generation/output_graph.pbmm

2019-06-14 22:23:45.413515: I tensorflow/contrib/util/convert_graphdef_memmapped_format_lib.cc:171] Converted 23 nodes

@lissyx Thank you so much for the help :slight_smile:

Weird. Could you file an issue for both problems? One for the invalid url and one for mentioning in the docs the safari’s behavior

1 Like

@lissyx I have raised below issue

How to download convert graphdef memmapped format binary file in safari broswer?

Well, I was more thinking about a Github issue …

@lissyx

this link gives me this on chrome:

{
“code”: “ResourceNotFound”,
“message”: “Indexed task not found\n\n—\n\n* method: findArtifactFromTask\n* errorCode: ResourceNotFound\n* statusCode: 404\n* time: 2019-09-29T20:32:01.249Z”,
“requestInfo”: {
“method”: “findArtifactFromTask”,
“params”: {
“0”: “public/convert_graphdef_memmapped_format”,
“indexPath”: “project.deepspeech.tensorflow.pip.master.cpu”,
“name”: “public/convert_graphdef_memmapped_format”
},
“payload”: {},
“time”: “2019-09-29T20:32:01.249Z”
}
}

Yes, it’s normal, it expired. I insist, you should read and use util/taskcluster.py with proper branch argument.

thank you very much for replying.

python util/taskcluster.py --branch v0.5.1 --source tensorflow --artifact convert_graphdef_memmapped_format --target native_client_bin

python util/taskcluster.py --branch r1.13 --source tensorflow --artifact convert_graphdef_memmapped_format --target native_client_bin

Both gives me HTTP Error 404: Not Found
What is wrong in my command?

Nothing, it’s just that artifacts expired.

As soon as https://tools.taskcluster.net/groups/QGJDilIzRnSuPWmKLNnKyw completes, you should be able to get them.

1 Like