X2Paddle
X2Paddle copied to clipboard
Deep learning model converter for PaddlePaddle. (『飞桨』深度学习模型转换工具)
## 问题描述 ### 错误 `Stopping at incomplete shape inference at Add: x2paddle_992` `RuntimeError: Inferred shape and existing shape differ in dimension 0: (0) vs (3)` ### 完整错误输出 ``` INFO:root:paddle.__version__ =...
目前转换还不支持ONNX的RandomNormalLike算子,可以考虑增加一下。该算子我是在转换腾讯开源的GFPGAN上遇到的,其模型GFPGANv1.3.onnx[可通过运行该地址下的程序获得:https://github.com/axinc-ai/ailia-models/tree/master/generative_adversarial_networks/gfpgan],模型其中有几层是RandomNormalLike算子
## 问题描述 - 错误信息 使用命令 ``` x2paddle -f tensorflow -m /Users/yws/small_bert_bert_en_uncased_L-2_H-128_A-2_2/saved_model.pb -s /Users/yws/small_bert_bert_en_uncased_L-2_H-128_A-2_2 ``` 进行转换时,发生了以下错误 ``` INFO:root:Now translating model from TensorFlow to Paddle. Traceback (most recent call last): File "/Users/yws/opt/anaconda3/envs/x2paddle/bin/x2paddle",...
感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat: ## 问题描述 卷积与反卷积都命名为self.conv0,导致后续加载出错。 - 错误信息  因为命名重复,导致算子的权重加载与算子的维度不一致,有报错 - 错误截图  ## 具体信息 - 转换模型后用处 使用 Paddle-Lite 做移动端推理 - 模型来源 dispnet:https://github.com/Genlk/DISPNET_paddle 模型结构为:https://github.com/Genlk/DISPNET_paddle/blob/main/dispnet...
感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat: ## 问题描述 - 错误信息 - 错误截图 ## 具体信息 - 转换模型后用处 - [ ] 使用 Paddle 框架/ PaddleInference 推理预测 - [ ]...
感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat: ## 问题描述 pytorch训练的模型转为onnx,再转为paddle,都转成功了。  但在测试时,报错了。 用paddle2.3.1+yolov3训练的模型,用同样的方法测试是成功的。 转换模型的命令用的:x2paddle --framework=onnx --model=yolov7_v1.onnx --save_dir=model_yolov7 测试用的命令是(main方法是c++写的工控机上发布的测试例子main.exe):.\main --model_dir=model_yolov7 --image_file=test1.png - 错误信息 -------------------------------------- C++ Traceback (most recent call...
用自己的数据集进行了训练,然后导出onnx ,用导出的onnx生成calibrate_table和 quant_model时,报下面的问题。(但是用示例onnx就不报错。) -------------------------------- /opt/conda/lib/python3.8/site-packages/onnx/mapping.py:27: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior...
我使用X2Paddle转换Pytorch项目,出现下面错误提示:  torch.cuda.manual_seed_all, torch.where, torch.utils.data.TensorDataset这几个操作不支持转换 但我查过API,支持torch.where,那为什么我的项目会出错呢?
- 问题描述 prim::PythonOp不支持 - 错误信息 ========= 1 OPs are not supported yet =========== ========== prim::PythonOp ============ Traceback (most recent call last): File "online_model.py", line 169, in pytorch2paddle(module=model, File "/root/miniconda3/lib/python3.8/site-packages/x2paddle/convert.py", line...
按照官方配置好环境后,运行报错:  按照https://github.com/PaddlePaddle/X2Paddle/issues/494 的方法 更新x2paddle后,又报下面的错:  PaddlePaddle = 2.3.2 x2paddle 是develop分支代码git后安装 更新onnx 版本和 x2paddle后又报这个错  目前没有找到解决方法。 麻烦看一下 谢谢 wechat : ST_YangMu