Add YOLO-Face + Minor fixes

This commit is contained in:
Marcos Luciano
2023-09-09 20:32:25 -03:00
parent 1a9df997a4
commit 1445990136
35 changed files with 54 additions and 155 deletions

View File

@@ -116,7 +116,7 @@ Yolo::createEngine(nvinfer1::IBuilder* builder)
}
}
if (!m_ImplicitBatch && network->getInput(0)->getDimensions().d[0] == -1) {
if ((m_NetworkType == "darknet" && !m_ImplicitBatch) || network->getInput(0)->getDimensions().d[0] == -1) {
nvinfer1::IOptimizationProfile* profile = builder->createOptimizationProfile();
assert(profile);
for (INT i = 0; i < network->getNbInputs(); ++i) {