MCPcopy Create free account
hub / github.com/acking-you/static_flow / dim

Method dim

crates/embedding/src/image.rs:26–34  ·  view source on GitHub ↗

Embedding dimension for each image model (from fastembed model list).

(self)

Source from the content-addressed store, hash-verified

24impl ImageEmbeddingModelChoice {
25 /// Embedding dimension for each image model (from fastembed model list).
26 pub const fn dim(self) -> usize {
27 match self {
28 ImageEmbeddingModelChoice::ClipVitB32 => 512,
29 ImageEmbeddingModelChoice::Resnet50 => 2048,
30 ImageEmbeddingModelChoice::UnicomVitB16 => 768,
31 ImageEmbeddingModelChoice::UnicomVitB32 => 512,
32 ImageEmbeddingModelChoice::NomicEmbedVisionV15 => 768,
33 }
34 }
35
36 #[cfg(not(target_arch = "wasm32"))]
37 fn to_fastembed(self) -> ImageEmbeddingModel {

Callers 1

image.rsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected