smallsun848
smallsun848
在springboot中通过bean设置将解析改为fastjson。fastjson版本为1.2.36 Controller端代码如下,程序正常运行,但是字段还是返回了Test中的全部字段内容。 @RequestMapping("ob") @FastJsonView( include = {@FastJsonFilter(clazz = Test.class,props={"descn"})}, exclude = {@FastJsonFilter(clazz = Test.class,props = {"id","name"})} ) public @ResponseBody Test ob(){ Test test = new Test(); test.setId(22); test.setName("badaf"); test.setDescn("hjhh"); test.setAaa("aaa");...
CPU:Kunpeng 920 5250 NPU卡:300I DUO 部署方式:Docker容器 # 310P aarch64 架构 docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80T113-ubuntu20-npu-310p-base-aarch64-gcc84 遇到问题:在官网https://github.com/PaddlePaddle/PaddleX/blob/develop/docs/support_list/model_list_npu.md下载RT-DETR-H_layout_17cls版面检测的推理模型。 希望将模型转换为onnx实现ORT后端推理,但是在转换模型报错。 root@localhost:/work/model/npu# paddle2onnx --model_dir=RT-DETR-H_layout_17cls_infer --model_filename inference.json --params_filename inference.pdiparams --save_file=./RT-DETR-H_layout_17cls_infer/inference.onnx --enable_onnx_checker=True I1104 14:04:59.836850 1537 init.cc:238] ENV [CUSTOM_DEVICE_ROOT]=/usr/local/lib/python3.10/dist-packages/paddle_custom_device...