Commit 083616d0 authored by Anna Petrovicheva's avatar Anna Petrovicheva

Fixed warnings

parent 1f020151
......@@ -115,7 +115,7 @@ int main(int argc, char** argv)
Mat detectionMat(detection.rows(), detection.cols(), CV_32F, detection.ptrf());
float confidenceThreshold = parser.get<float>("min_confidence");
for(size_t i = 0; i < detectionMat.rows; i++)
for(int i = 0; i < detectionMat.rows; i++)
{
float confidence = detectionMat.at<float>(i, 2);
......
......@@ -84,7 +84,7 @@ void ConcatLayer::allocate(const std::vector<Blob *> &inputs, std::vector<Blob>
void ConcatLayer::forward(std::vector<Blob *> &inputs, std::vector<Blob> &outputs)
{
// In case when Blob shape used in allocation and inner matrix shape do not match, this layer did not work in previous implementation. This implementation is just a fix and needs to be rewritten more optimally.
// In case when Blob shape used in allocation and inner matrix shape do not match, this layer did not work in previous implementation. This implementation needs to be rewritten more optimally.
if (inputs.size() == 1)
{
......@@ -96,7 +96,7 @@ void ConcatLayer::forward(std::vector<Blob *> &inputs, std::vector<Blob> &output
size_t outputStride = outputs[0].total(axis);
size_t offset = 0;
for (int i = 0; i < inputs.size(); ++i)
for (size_t i = 0; i < inputs.size(); ++i)
{
size_t inputSliceSize = inputs[i]->total(axis);
const float* inputData = inputs[i]->ptrf();
......@@ -105,7 +105,6 @@ void ConcatLayer::forward(std::vector<Blob *> &inputs, std::vector<Blob> &output
{
const float* src = inputData + n * inputSliceSize;
float* dst = outputData + n * outputStride + offset;
// memcpy(dst, src, inputSliceSize);
for(size_t k = 0; k < inputSliceSize; k++)
{
dst[k] = src[k];
......
......@@ -211,6 +211,8 @@ void PriorBoxLayer::allocate(const std::vector<Blob*> &inputs, std::vector<Blob>
void PriorBoxLayer::forward(std::vector<Blob*> &inputs, std::vector<Blob> &outputs)
{
(void)inputs; // to suppress unused parameter warning
float* outputPtr = outputs[0].ptrf();
// first prior: aspect_ratio = 1, size = min_size
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment