MCPcopy Create free account

hub / github.com/JosephCatrambone/pixelbox / functions

Functions74 in github.com/JosephCatrambone/pixelbox

↓ 8 callersFunctionphash
(img:&DynamicImage)
src/image_hashes/phash.rs:3
↓ 7 callersFunctionhamming_distance
(hash_a:&Vec<u8>, hash_b:&Vec<u8>)
src/engine.rs:594
↓ 6 callersFunctiontokenize_query
Query utility functions:
src/engine.rs:443
↓ 4 callersMethodget_tracked_folders
(&mut self)
src/engine.rs:417
↓ 4 callersMethodopen
(filename:&Path)
src/engine.rs:117
↓ 3 callersMethodquery_by_image_hash_from_image
(&mut self, indexed_image:&IndexedImage)
src/engine.rs:363
↓ 2 callersFunctionindexed_image_from_row
We should implement try_from_row for this. The last entry is seven, so tags or hashes start at row.get(6).
src/engine.rs:63
↓ 2 callersMethodis_indexing_active
(&self)
src/engine.rs:173
↓ 2 callersFunctionmake_byte_distance_db_function
(db: &mut Connection)
src/engine.rs:624
↓ 2 callersFunctionmake_cosine_distance_db_function
(db: &mut Connection)
src/engine.rs:608
↓ 2 callersFunctionmake_hamming_distance_db_function
(db: &mut Connection)
src/engine.rs:640
↓ 2 callersFunctionmlhash
(img:&DynamicImage)
src/image_hashes/nomic.rs:36
↓ 2 callersMethodquery_by_image_hash_from_file
(&mut self, img:&Path)
src/engine.rs:352
↓ 2 callersFunctionstart_panel
( ui: &mut egui::Ui )
src/ui/start.rs:5
↓ 1 callersMethodadd_tracked_folder
(&mut self, folder_glob:String)
src/engine.rs:404
↓ 1 callersFunctionbuild_model
(latent_space: int)
resources/train.py:30
↓ 1 callersFunctionbuild_where_clause_from_parsed_query
(tokens: &Vec<String>, cached_similar_image: &mut Option<IndexedImage>)
src/engine.rs:499
↓ 1 callersFunctionbyte_distance
(hash_a:&Vec<u8>, hash_b:&Vec<u8>)
src/engine.rs:590
↓ 1 callersMethodclone_connection
(&self, flags: Option<OpenFlags>)
src/engine.rs:147
↓ 1 callersFunctioncosine_distance
Distance Functions Distance functions should return near zero for almost identical items and a large value for different ones. All of these methods sh
src/engine.rs:572
↓ 1 callersFunctiondetect_files_being_dropped
Flagrantly stolen from the drag-and-drop documentation: https://github.com/emilk/egui/blob/master/eframe/examples/file_dialog.rs#L67
src/ui/search.rs:120
↓ 1 callersFunctionfetch_or_generate_thumbnail
Given the thumbnail cache and an image ID, will attempt to load the TextureID from the cache. On a cache hit, will return the TextureID. On a cache mi
src/ui/mod.rs:50
↓ 1 callersFunctionfinalize
(encoder, config)
resources/train.py:167
↓ 1 callersFunctionfolder_panel
( engine: &mut Engine, ctx: &egui::Context, ui: &mut egui::Ui )
src/ui/folders.rs:10
↓ 1 callersMethodget_last_added
(&self)
src/engine.rs:214
↓ 1 callersMethodget_query_results
(&self)
src/engine.rs:398
↓ 1 callersMethodget_thumbnail
(&self)
src/indexed_image.rs:93
↓ 1 callersFunctionimage_to_tensor
(img: &DynamicImage)
src/image_hashes/nomic.rs:26
↓ 1 callersFunctionimage_to_tensor
Loads an image from disk using the image crate, this returns a tensor with shape (3, 384, 384). OpenAI normalization is applied. pub fn load_image<P:
src/image_hashes/efficientnet.rs:19
↓ 1 callersFunctionindexed_image_to_egui_colorimage
(indexed_image: &IndexedImage, alpha_fill:u8)
src/ui/mod.rs:33
↓ 1 callersMethodinsert_image_from_memory
(&mut self, img:IndexedImage)
src/engine.rs:224
↓ 1 callersFunctionload_image_from_path
(path: &std::path::Path)
src/ui/mod.rs:17
↓ 1 callersFunctionmain
()
resources/train.py:177
↓ 1 callersFunctionmlhash
(img:&DynamicImage)
src/image_hashes/efficientnet.rs:31
↓ 1 callersFunctionnavigation
(app_state: &mut MainApp, ui: &mut egui::Ui)
src/ui/menutabs.rs:7
↓ 1 callersMethodquery
(&mut self, user_input:&String)
src/engine.rs:261
↓ 1 callersMethodremove_tracked_folder
(&mut self, folder_glob:String)
src/engine.rs:410
↓ 1 callersFunctionsearch_panel
( app_state: &mut MainApp, ui: &mut egui::Ui )
src/ui/search.rs:9
↓ 1 callersFunctionsettings_panel
( app_state: &mut MainApp, // We will need this eventually. ui: &mut egui::Ui )
src/ui/settings.rs:5
↓ 1 callersMethodstart_indexing
(&mut self)
src/engine.rs:177
↓ 1 callersMethodstop_indexing
(&mut self)
src/engine.rs:207
↓ 1 callersFunctionstringify_filepath
Convert a path into a canonical string. We could do a few different things to a path, but to ensure we're doing the same thing everywhere we reference
src/indexed_image.rs:101
↓ 1 callersFunctiontrain
(model, config: Type[Configuration])
resources/train.py:94
↓ 1 callersFunctionview_panel
( app_state: &mut MainApp, ui: &mut egui::Ui )
src/ui/view.rs:14
Method__getitem__
(self, index: int)
resources/train.py:75
Method__init__
(self, root, corruptions, scan_for_broken_images:bool = False)
resources/train.py:50
Method__len__
(self)
resources/train.py:89
Functionbench_phash
[bench]
src/image_hashes/phash.rs:81
Methodclear_query_results
(&mut self)
src/engine.rs:402
Methoddefault
()
src/main.rs:54
Methoddefault
()
src/ui/mod.rs:92
Methodfrom_file_path
(path:&Path)
src/indexed_image.rs:35
Methodfrom_memory
(bytes:&mut Vec<u8>, filename:String, path:String)
src/indexed_image.rs:47
Methodget_num_indexed_images
Perform a count of the number of indexed images and cache the value.
src/engine.rs:162
Methodinsert_image_from_connection
(conn: &mut Connection, mut img:IndexedImage)
src/engine.rs:228
Methodinsert_image_from_path
(&mut self, path: &Path)
src/engine.rs:218
Functionload_image_from_memory
(image_data: &[u8])
src/ui/mod.rs:25
Functionmain
()
src/main.rs:104
Methodnew
()
src/crawler.rs:16
Methodnew
(filename:&Path)
src/engine.rs:98
Functionpaginate
(ui: &mut Ui, current_page: &mut u64, max_page: u64)
src/ui/mod.rs:61
Methodstart_indexing
( &mut self, folders: Vec<String>, num_workers: usize, )
src/crawler.rs:22
Functiontest_cosine_distance
()
src/engine.rs:704
Functiontest_hamming_distance
()
src/engine.rs:694
Functiontest_load_resource
()
src/indexed_image.rs:111
Functiontest_phash
()
src/image_hashes/phash.rs:44
Functiontest_phash_flat_white
()
src/image_hashes/phash.rs:37
Functiontest_sanity
()
src/image_hashes/nomic.rs:61
Functiontest_sanity
()
src/image_hashes/efficientnet.rs:55
Functiontest_tokenize_query
()
src/engine.rs:674
Methodtry_get_num_indexed_images
(&self)
src/engine.rs:157
Methodui_content
(&mut self, ui: &mut egui::Ui)
src/ui/mod.rs:112
Methodui_control
(&mut self, ui: &mut egui::Ui)
src/ui/mod.rs:101
Methodupdate
(&mut self, ctx: &egui::Context, frame: &mut eframe::Frame)
src/main.rs:78