PaddleOCR
PaddleOCR copied to clipboard
PaddleOCR推理时,换了一个设备推理报错
使用的分支是releses-2.5 ,代码在机台设备上都能跑通,我的设备显卡是2080,然后再1070也能跑通 然后在线上的设备就报错了,不知道什么原因,会是显卡的问题么,那个设备显卡是T4
报错信息:
[2022-10-27 16:28:18] I1027 08:28:18.681836 15 analysis_config.cc:1044] In CollectShapeInfo mode, we will disable optimizations and collect the shape information of all intermediate tensors in the compute graph and calculate the min_shape, max_shape and opt_shape.
[2022-10-27 16:28:20] terminate called after throwing an instance of 'phi::enforce::EnforceNotMet'
[2022-10-27 16:28:20] what():
[2022-10-27 16:28:20]
[2022-10-27 16:28:20] --------------------------------------
[2022-10-27 16:28:20] C++ Traceback (most recent call last):
[2022-10-27 16:28:20] --------------------------------------
[2022-10-27 16:28:20] 0 paddle_infer::CreatePredictor(paddle::AnalysisConfig const&)
[2022-10-27 16:28:20] 1 paddle_infer::Predictor::Predictor(paddle::AnalysisConfig const&)
[2022-10-27 16:28:20] 2 paddle::AnalysisPredictor::~AnalysisPredictor()
[2022-10-27 16:28:20] 3 paddle::AnalysisPredictor::~AnalysisPredictor()
[2022-10-27 16:28:20] 4 paddle::memory::allocation::AllocatorFacade::Release(phi::Place const&)
[2022-10-27 16:28:20] 5 paddle::memory::allocation::AllocatorFacadePrivate::GetAllocator(phi::Place const&, unsigned long)
[2022-10-27 16:28:20]
[2022-10-27 16:28:20] ----------------------
[2022-10-27 16:28:20] Error Message Summary:
[2022-10-27 16:28:20] ----------------------
[2022-10-27 16:28:20] NotFoundError: No allocator found for the place, Place(undefined:0)
[2022-10-27 16:28:20] [Hint: Expected iter != allocators.end(), but received iter == allocators.end().] (at /paddle/paddle/fluid/memory/allocation/allocator_facade.cc:343)
[2022-10-27 16:28:20]
[2022-10-27 16:28:28] ai picture server version : 1.1
[2022-10-27 16:28:28] (2022-10-27 08:28:28) [INFO ] Crow/0.1 server is running at 0.0.0.0:9090 using 16 threads
[2022-10-27 16:28:28] (2022-10-27 08:28:28) [INFO ] Call app.loglevel(crow::LogLevel::Warning)
to hide Info level logs.