ml-suite icon indicating copy to clipboard operation
ml-suite copied to clipboard

no such file xfdnn_compiler_caffe.py or quantize.py

Open Haffon opened this issue 6 years ago • 3 comments

the command line tool demo (xfdnn_compiler_caffe_vgg16.sh) in examples directory unable to run as only .pyc is provided under xfdnn directory. Fixed replace calling xfdnn_compiler_caffe.py with xfdnn_compiler_caffe.pyc.

Haffon avatar Feb 21 '19 06:02 Haffon

@Haffon, you changed the name to solve the problem? I'm facing this issue with a lot of files as only pyc files have been uploaded and no py.

Saums avatar Feb 22 '19 02:02 Saums

@Saums Yes, I solved it by change the ".py" to ".pyc" in shell command files, it works. As in ml-suite/examples/compile/xfdnn_compiler_caffe_places365.sh Line 26 python $MLSUITE_ROOT/xfdnn/tools/compile/bin/xfdnn_compiler_caffe.pyc
Line 35 python $MLSUITE_ROOT/xfdnn/tools/compile/bin/xfdnn_compiler_caffe.pyc
Thanks.

Haffon avatar Feb 22 '19 06:02 Haffon

@Saums , try this also as alternative

pip install uncompyle6 uncompyle6 file.pyc >> file.py

mahinlma avatar Jun 01 '19 17:06 mahinlma