Skip to content

运行stable-diffusion 的c++ 示例报错 #2380

@ChaoII

Description

@ChaoII

编译信息:

-- *************FastDeploy Building Summary**********
--   CMake version             : 3.26.4
--   CMake command             : C:/software/CLion 2022.3.2/bin/cmake/win/x64/bin/cmake.exe
--   System                    : Windows
--   C++ compiler              : C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe
--   C++ standard              : 
--   C++ cuda standard         : 
--   C++ compiler version      : 19.35.32215.0
--   CXX flags                 : /DWIN32 /D_WINDOWS /W3 /GR /EHsc
--   EXE linker flags          : /machine:x64
--   Shared linker flags       : /machine:x64
--   Build type                : Release
--   Compile definitions       : 
--   CMAKE_PREFIX_PATH         : 
--   CMAKE_INSTALL_PREFIX      : C:/Program Files (x86)/main
--   CMAKE_MODULE_PATH         : 
-- 
--   FastDeploy version        : 0.0.0
--   ENABLE_ORT_BACKEND        : OM
--   ENABLE_RKNPU2_BACKEND     : OFF
--   ENABLE_HORIZON_BACKEND    : OFF
--   ENABLE_SOPHGO_BACKEND     : OFF
--   ENABLE_PADDLE_BACKEND     : ON
--   ENABLE_LITE_BACKEND       : OFF
--   ENABLE_POROS_BACKEND      : OFF
--   ENABLE_TRT_BACKEND        : ON
--   ENABLE_OPENVINO_BACKEND   : OFF
--   ENABLE_TVM_BACKEND        : OFF
--   ENABLE_BENCHMARK          : OFF
--   ENABLE_VISION             : ON
--   ENABLE_TEXT               : ON
--   ENABLE_ENCRYPTION         : OFF
--   ENABLE_FLYCV              : OFF
--   ENABLE_CVCUDA             : OFF
--   WITH_GPU                  : ON
--   WITH_IPU                  : OFF
--   WITH_OPENCL               : OFF
--   WITH_TESTING              : OFF
--   WITH_ASCEND               : OFF
--   WITH_DIRECTML             : OFF
--   WITH_TIMVX                : OFF
--   WITH_KUNLUNXIN            : OFF
--   WITH_CAPI                 : OFF
--   WITH_CSHARPAPI            : OFF
--   ONNXRuntime version       : 
--   Paddle Inference version  : 2.5.0.281761089e
--   PADDLE_WITH_ENCRYPT       : OFF
--   PADDLE_WITH_AUTH          : OFF
--   CUDA_DIRECTORY            : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7
--   TRT_DRECTORY              : 
--   DEPENDENCY_LIBS           : E:/FastDeploy/build_gpu/install/lib/fastdeploy.lib;E:/FastDeploy/build_gpu/install/third_libs/install/onnxruntime/lib/onnxruntime.lib;E:/FastDeploy/build_gpu/install/third_libs/install/paddle_inference/paddle/lib/paddle_inference.lib;E:/FastDeploy/build_gpu/install/third_libs/install/paddle_inference/third_party/install/mkldnn/lib/mkldnn.lib;E:/FastDeploy/build_gpu/install/third_libs/install/paddle_inference/third_party/install/mklml/lib/libiomp5md.lib;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/lib/x64/cudart.lib;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/lib/x64/nvjpeg.lib;E:/FastDeploy/build_gpu/install/third_libs/install/tensorrt/lib/nvinfer.lib;E:/FastDeploy/build_gpu/install/third_libs/install/tensorrt/lib/nvonnxparser.lib;E:/FastDeploy/build_gpu/install/third_libs/install/tensorrt/lib/nvinfer_plugin.lib;opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_gapi;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;E:/FastDeploy/build_gpu/install/third_libs/install/fast_tokenizer/lib/core_tokenizers.lib;E:/FastDeploy/build_gpu/install/third_libs/install/paddle2onnx/lib/paddle2onnx.lib

报错信息:

[ERROR] fastdeploy/utils/utils.cc(54)::fastdeploy::ReadBinaryFromFile   Failed to open file: ./stable-diffusion-v1-4\vae
_encoder\inference.pdmodel to read.
[ERROR] fastdeploy/runtime/backends/paddle/paddle_backend.cc(209)::fastdeploy::PaddleBackend::InitFromPaddle    Failed t
o read file ./stable-diffusion-v1-4\vae_encoder\inference.pdmodel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions