Commit ea9aae0f authored by Hung-Wei Chiu's avatar Hung-Wei Chiu Committed by Davis E. King

Fix warning (#851)

* remove unused variable

* modify variable type from int to size_t

* fix previous delete, we need to call chinese_whispers here but we don't need its result now
parent fa2f35fe
......@@ -166,7 +166,7 @@ boost::python::list chinese_whispers_clustering(boost::python::list descriptors,
edges.push_back(sample_pair(i,j));
}
}
const auto num_clusters = chinese_whispers(edges, labels);
chinese_whispers(edges, labels);
for (size_t i = 0; i < labels.size(); ++i)
{
clusters.append(labels[i]);
......@@ -242,7 +242,6 @@ boost::python::list get_face_chips (
boost::python::list chips_list;
int num_faces = faces.size();
std::vector<chip_details> dets;
for (auto& f : faces)
dets.push_back(get_face_chip_details(f, size, padding));
......@@ -253,9 +252,9 @@ boost::python::list get_face_chips (
{
boost::python::list img;
for(int row=0; row<size; row++) {
for(size_t row=0; row<size; row++) {
boost::python::list row_list;
for(int col=0; col<size; col++) {
for(size_t col=0; col<size; col++) {
rgb_pixel pixel = chip(row, col);
boost::python::list item;
......
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