aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-01-20 18:00:28 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-01-20 18:00:28 +0100
commit4b054ac9ccf22b2eb87641e0cb1784bc92663777 (patch)
treef7e126a9ba722866d102a01c80964b1602b5f30c
parent4131bc5d3130e876d021e1cfa7fae4d3c3b86626 (diff)
downloadgallery-4b054ac9ccf22b2eb87641e0cb1784bc92663777.tar.gz
gallery-4b054ac9ccf22b2eb87641e0cb1784bc92663777.tar.xz
gallery-4b054ac9ccf22b2eb87641e0cb1784bc92663777.zip
deeptagger: swap columns to match 'galery tag'
-rw-r--r--deeptagger/deeptagger.cpp4
-rw-r--r--main.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/deeptagger/deeptagger.cpp b/deeptagger/deeptagger.cpp
index 4e8f61e..27b0a91 100644
--- a/deeptagger/deeptagger.cpp
+++ b/deeptagger/deeptagger.cpp
@@ -309,8 +309,8 @@ run(std::vector<Magick::Image> &images, const Config &config,
if (config.sigmoid)
value = 1 / (1 + std::exp(-value));
if (value > g.threshold) {
- printf("%s\t%.2f\t%s\n", images.at(i).fileName().c_str(),
- value, config.tags.at(t).c_str());
+ printf("%s\t%s\t%.2f\n", images.at(i).fileName().c_str(),
+ config.tags.at(t).c_str(), value);
}
}
}
diff --git a/main.go b/main.go
index 95bb502..0299a14 100644
--- a/main.go
+++ b/main.go
@@ -2173,7 +2173,7 @@ func makeThumbnail(load bool, pathImage, pathThumb string) (
}
// Create a normalized thumbnail. Since we don't particularly need
- // any complex processing, such as surrounding of metadata,
+ // any complex processing, such as surrounding metadata,
// simply push it through ImageMagick.
//
// - http://www.ericbrasseur.org/gamma.html