summaryrefslogtreecommitdiff
path: root/candle-examples/examples/clip/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'candle-examples/examples/clip/main.rs')
-rw-r--r--candle-examples/examples/clip/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-examples/examples/clip/main.rs b/candle-examples/examples/clip/main.rs
index f301d211..d057663d 100644
--- a/candle-examples/examples/clip/main.rs
+++ b/candle-examples/examples/clip/main.rs
@@ -33,7 +33,7 @@ struct Args {
}
fn load_image<T: AsRef<std::path::Path>>(path: T, image_size: usize) -> anyhow::Result<Tensor> {
- let img = image::io::Reader::open(path)?.decode()?;
+ let img = image::ImageReader::open(path)?.decode()?;
let (height, width) = (image_size, image_size);
let img = img.resize_to_fill(
width as u32,