Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Jan 24, 2022
1 parent c72dd6a commit a3f80fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deployment/tensorrt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ICudaEngine* CreateCudaEngineFromOnnx(
if (!config) {
return nullptr;
}
config->setMaxWorkspaceSize(20 * (1U << 20));
config->setMaxWorkspaceSize(40 * (1U << 20));
config->setFlag(BuilderFlag::kGPU_FALLBACK);
if (enable_int8) {
if (builder->platformHasFastInt8()) {
Expand Down Expand Up @@ -267,7 +267,7 @@ std::vector<Detection> YOLOv5Detector::detect(cv::Mat& image) {
int32_t num_detections = 0;
std::vector<float> detection_boxes;
std::vector<float> detection_scores;
std::vector<float> detection_labels;
std::vector<int> detection_labels;

Dims dim = engine->getBindingDimensions(0);
dim.d[0] = batch_size;
Expand Down
2 changes: 1 addition & 1 deletion yolort/runtime/yolo_graphsurgeon.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def register_nms(
Register the ``EfficientNMS_TRT`` plugin node.
NMS expects these shapes for its input tensors:
- box_net: [batch_size, number_boxes, 1, 4]
- box_net: [batch_size, number_boxes, 4]
- class_net: [batch_size, number_boxes, number_labels]
Args:
Expand Down

0 comments on commit a3f80fb

Please sign in to comment.