X2Paddle icon indicating copy to clipboard operation
X2Paddle copied to clipboard

Deep learning model converter for PaddlePaddle. (『飞桨』深度学习模型转换工具)

Results 232 X2Paddle issues
Sort by recently updated
recently updated
newest added

## 问题描述 ### 错误 `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

目前转换还不支持ONNX的RandomNormalLike算子,可以考虑增加一下。该算子我是在转换腾讯开源的GFPGAN上遇到的,其模型GFPGANv1.3.onnx[可通过运行该地址下的程序获得:https://github.com/axinc-ai/ailia-models/tree/master/generative_adversarial_networks/gfpgan],模型其中有几层是RandomNormalLike算子

ONNX

## 问题描述 - 错误信息 使用命令 ``` 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",...

TensorFlow

感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat: ## 问题描述 卷积与反卷积都命名为self.conv0,导致后续加载出错。 - 错误信息 ![image](https://user-images.githubusercontent.com/24912927/191155145-9e5a65ec-2323-4e68-a6fd-338f70fb6eb5.png) 因为命名重复,导致算子的权重加载与算子的维度不一致,有报错 - 错误截图 ![image](https://user-images.githubusercontent.com/24912927/191154961-ee030b71-9227-488c-a013-9d36c89e133e.png) ## 具体信息 - 转换模型后用处 使用 Paddle-Lite 做移动端推理 - 模型来源 dispnet:https://github.com/Genlk/DISPNET_paddle 模型结构为:https://github.com/Genlk/DISPNET_paddle/blob/main/dispnet...

PyTorch

感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat: ## 问题描述 - 错误信息 - 错误截图 ## 具体信息 - 转换模型后用处 - [ ] 使用 Paddle 框架/ PaddleInference 推理预测 - [ ]...

PyTorch

感谢您参与 X2Paddle 社区! 问题模版为了 X2Paddle 能更好的迭代,例如新功能发布、 RoadMaps 和错误跟踪. :smile_cat: ## 问题描述 pytorch训练的模型转为onnx,再转为paddle,都转成功了。 ![image](https://user-images.githubusercontent.com/113532454/190183783-8412d070-9dfc-4586-83dd-0dd35d8f1bd6.png) 但在测试时,报错了。 用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 ,用导出的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...

ONNX

我使用X2Paddle转换Pytorch项目,出现下面错误提示: ![1663131449797](https://user-images.githubusercontent.com/106940935/190063159-b7203c74-68e9-4600-8953-d00fe1e6233d.png) torch.cuda.manual_seed_all, torch.where, torch.utils.data.TensorDataset这几个操作不支持转换 但我查过API,支持torch.where,那为什么我的项目会出错呢?

PyTorch_Project

- 问题描述 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...

PyTorch

按照官方配置好环境后,运行报错: ![image](https://user-images.githubusercontent.com/64970397/188051340-35e051fb-207a-4640-b584-5b56b0465066.png) 按照https://github.com/PaddlePaddle/X2Paddle/issues/494 的方法 更新x2paddle后,又报下面的错: ![image](https://user-images.githubusercontent.com/64970397/188051444-07c1121b-793b-4244-b33c-a05ca73c7049.png) PaddlePaddle = 2.3.2 x2paddle 是develop分支代码git后安装 更新onnx 版本和 x2paddle后又报这个错 ![image](https://user-images.githubusercontent.com/64970397/188053687-9787a408-5b6b-4465-9537-6e8f2a14595d.png) 目前没有找到解决方法。 麻烦看一下 谢谢 wechat : ST_YangMu

ONNX