mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 20:22:49 +00:00
MobileCLIP models S1 and S2 (#2454)
* Allow loading images with given std and mean * OpenCLIP text encoder component * Two MobileCLIP models * Clippy fixes. --------- Co-authored-by: Laurent <laurent.mazare@gmail.com>
This commit is contained in:
@ -72,8 +72,9 @@ pub fn main() -> anyhow::Result<()> {
|
||||
|
||||
let device = candle_examples::device(args.cpu)?;
|
||||
|
||||
let image = candle_examples::imagenet::load_image(args.image, args.which.resolution())?
|
||||
.to_device(&device)?;
|
||||
let image =
|
||||
candle_examples::imagenet::load_image(args.image, args.which.resolution() as usize)?
|
||||
.to_device(&device)?;
|
||||
println!("loaded image {image:?}");
|
||||
|
||||
let model_file = match args.model {
|
||||
|
Reference in New Issue
Block a user