mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-26 18:10:32 +08:00
[Other] Upgrade runtime module (#1068)
* Upgrade runtime module * Update option.h * Fix build error * Move enumerates * little modification * little modification * little modification: * Remove some useless flags
This commit is contained in:
@@ -75,14 +75,14 @@ YOLOv7End2EndTRT::YOLOv7End2EndTRT(const std::string& model_file,
|
||||
runtime_option.model_format = model_format;
|
||||
runtime_option.model_file = model_file;
|
||||
if (runtime_option.device != Device::GPU) {
|
||||
FDWARNING << Str(runtime_option.device)
|
||||
FDWARNING << runtime_option.device
|
||||
<< " is not support for YOLOv7End2EndTRT,"
|
||||
<< "will fallback to Device::GPU." << std::endl;
|
||||
runtime_option.device = Device::GPU;
|
||||
}
|
||||
if (runtime_option.backend != Backend::UNKNOWN) {
|
||||
if (runtime_option.backend != Backend::TRT) {
|
||||
FDWARNING << Str(runtime_option.backend)
|
||||
FDWARNING << runtime_option.backend
|
||||
<< " is not support for YOLOv7End2EndTRT,"
|
||||
<< "will fallback to Backend::TRT." << std::endl;
|
||||
runtime_option.backend = Backend::TRT;
|
||||
@@ -347,4 +347,4 @@ bool YOLOv7End2EndTRT::Predict(cv::Mat* im, DetectionResult* result,
|
||||
|
||||
} // namespace detection
|
||||
} // namespace vision
|
||||
} // namespace fastdeploy
|
||||
} // namespace fastdeploy
|
||||
|
||||
Reference in New Issue
Block a user