mirror of
https://github.com/mii443/usls.git
synced 2025-12-03 02:58:22 +00:00
Adjust outputs (#16)
This commit is contained in:
@@ -39,7 +39,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let feats_image = model.encode_images(&images).unwrap();
|
||||
|
||||
// use image to query texts
|
||||
let matrix = feats_image.dot2(&feats_text)?;
|
||||
let matrix = match feats_image.embedding() {
|
||||
Some(x) => x.dot2(feats_text.embedding().unwrap())?,
|
||||
None => continue,
|
||||
};
|
||||
|
||||
// summary
|
||||
for i in 0..paths.len() {
|
||||
|
||||
Reference in New Issue
Block a user