fix
This commit is contained in:
parent
212c9f18fa
commit
9c4d8a400c
|
@ -1,6 +1,7 @@
|
||||||
#include "common_det_cuda_impl.h"
|
#include "common_det_cuda_impl.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <iostream>
|
||||||
#include "sv_util.h"
|
#include "sv_util.h"
|
||||||
|
|
||||||
#define SV_MODEL_DIR "/SpireCV/models/"
|
#define SV_MODEL_DIR "/SpireCV/models/"
|
||||||
|
@ -366,7 +367,7 @@ bool CommonObjectDetectorCUDAImpl::cudaSetup(CommonObjectDetectorBase* base_, bo
|
||||||
std::string model = base_->getModel();
|
std::string model = base_->getModel();
|
||||||
int bs = base_->getBatchSize();
|
int bs = base_->getBatchSize();
|
||||||
char bs_c[8];
|
char bs_c[8];
|
||||||
itoa(bs, bs_c, 10);
|
sprintf(bs_c, "%d", bs);
|
||||||
std::string bs_s(bs_c);
|
std::string bs_s(bs_c);
|
||||||
|
|
||||||
std::string engine_fn = get_home() + SV_MODEL_DIR + dataset + ".engine";
|
std::string engine_fn = get_home() + SV_MODEL_DIR + dataset + ".engine";
|
||||||
|
@ -449,17 +450,5 @@ bool CommonObjectDetectorCUDAImpl::cudaSetup(CommonObjectDetectorBase* base_, bo
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue