From 0aced90a11df4b36bcc70950f014cac29d3ad0fc Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Thu, 12 Dec 2024 16:09:37 +0100 Subject: rename content-angular-distance to content-angular. also, arbitrary-ish 1.0 release. --- Cargo.toml | 2 +- src/main.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bfc9bd1..cff4186 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "embeddings-sort" -version = "0.4.0" +version = "1.0.0" edition = "2021" [dependencies] diff --git a/src/main.rs b/src/main.rs index 1cc380f..7ce4ec1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ enum Embedder { Hue, Color, ContentEuclidean, - ContentAngularDistance, + ContentAngular, ContentCosine, ContentManhatten, } @@ -39,7 +39,7 @@ enum TspBaseAlg { #[derive(Debug, Parser)] struct Args { /// Characteristic to sort by - #[arg(short, long, default_value = "content-angular-distance")] + #[arg(short, long, default_value = "content-angular")] embedder: Embedder, /// Symlink the sorted images into this directory @@ -228,7 +228,7 @@ fn main() -> Result<()> { Embedder::Brightness => process_embedder(BrightnessEmbedder, &args, &cfg), Embedder::Hue => process_embedder(HueEmbedder, &args, &cfg), Embedder::Color => process_embedder(ColorEmbedder, &args, &cfg), - Embedder::ContentAngularDistance => { + Embedder::ContentAngular => { process_embedder(ContentEmbedder::::new(&cfg), &args, &cfg) } Embedder::ContentCosine => { -- cgit v1.2.3-70-g09d2