首页 PaddleX 帖子详情
PaddleX模型格式转换及加密报错
收藏
快速回复
PaddleX 问答入门 392 0
PaddleX模型格式转换及加密报错
收藏
快速回复
PaddleX 问答入门 392 0

在GUI训练好的模型,导出后试图加密,但在模型转化格式的时候出现了报错。导出模型如下图 

然后想转换成__model__.encrypted、__params__.encrypted和model.yml格式。在!paddlex --export_inference --model_dir=./inference_model --save_dir=./inference_model2 后出现了报错,如图。

C:\ProgramData\Anaconda3\lib\site-packages\paddle\distributed\parallel.py:170: UserWarning: Currently not a parallel execution environment, `paddle.distributed.init_parallel_env` will not do anything.
warnings.warn(
C:\ProgramData\Anaconda3\lib\site-packages\paddlex\paddleseg\models\losses\decoupledsegnet_relax_boundary_loss.py:19: DeprecationWarning: Please use `shift` from the `scipy.ndimage` namespace, the `scipy.ndimage.interpolation` namespace is deprecated.
from scipy.ndimage.interpolation import shift
C:\ProgramData\Anaconda3\lib\site-packages\paddlex\paddleseg\transforms\functional.py:18: DeprecationWarning: Please use `distance_transform_edt` from the `scipy.ndimage` namespace, the `scipy.ndimage.morphology` namespace is deprecated.
from scipy.ndimage.morphology import distance_transform_edt
2023-03-29 14:55:00,080-WARNING: type object 'QuantizationTransformPass' has no attribute '_supported_quantizable_op_type'
2023-03-29 14:55:00,080-WARNING: If you want to use training-aware and post-training quantization, please use Paddle >= 1.8.4 or develop version
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\multiclass.py:13: DeprecationWarning: Please use `spmatrix` from the `scipy.sparse` namespace, the `scipy.sparse.base` namespace is deprecated.
from scipy.sparse.base import spmatrix

 

请问是什么原因,该如何解决?谢谢

0
收藏
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户