Replies: 5 comments
-
@apepkuss Thanks for your question, what is the purpose of wanting to read the params file if I may ask? Requesting more specifics on the use case. @mxnet-label-bot add [Question] |
Beta Was this translation helpful? Give feedback.
-
@mxnet-label-bot add [Pending requester Info] |
Beta Was this translation helpful? Give feedback.
-
@apepkuss Sorry for the late reply, what are you trying to do exactly? Are you trying to export the params in a human-readable format? |
Beta Was this translation helpful? Give feedback.
-
@apepkuss Requesting an update on the use-case |
Beta Was this translation helpful? Give feedback.
-
import mxnet as mx
params = mx.nd.load('resnet.params')
idx = 0
for k, param in params.items():
idx += 1
print(idx, k, param.asnumpy().shape) You can use the above code to view the params! |
Beta Was this translation helpful? Give feedback.
-
Description
I'm trying to parse mxnet params file into plain text in Python without using mxnet or gluon APIs. I tried the following simple Python code, but the result is not plain string, but looks like this "... \xaa>\x0f\xed\x8e>\xaf!\x8f>g ... " How can I get plain string from the param file? Thanks a lot.
Environment info (Required)
Python = 3.6
Beta Was this translation helpful? Give feedback.
All reactions