Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeiroYT committed Nov 28, 2024
1 parent 86ed300 commit a697ad1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/AccuracyImgNet/accimgnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ size_t str_to_sizet(std::string inp) {
return res;
}

Graph open_network(std::string path) { return Graph(1); }
Graph open_network(std::string path) {
path += " ";
return Graph(1);
}

void process_image(Tensor& input, std::string file) {
size_t width = 227;
Expand All @@ -69,8 +72,8 @@ void process_image(Tensor& input, std::string file) {
cv::split(resized_image, channels);
std::vector<float> res(width * width * 3);
int c = 0;
for (int i = 0; i < width; ++i) {
for (int j = 0; j < width; ++j) {
for (int i = 0; i < (int)width; ++i) {
for (int j = 0; j < (int)width; ++j) {
res[c] = channels[2].at<uchar>(i, j);
c++;
res[c] = channels[1].at<uchar>(i, j);
Expand Down

0 comments on commit a697ad1

Please sign in to comment.