mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
chore: start moving stuff off parcel
This commit is contained in:
@@ -18,7 +18,7 @@ fn mnist_5() -> ort::Result<()> {
|
||||
let mut session = Session::builder()?
|
||||
.with_optimization_level(GraphOptimizationLevel::Level1)?
|
||||
.with_intra_threads(1)?
|
||||
.commit_from_url("https://parcel.pyke.io/v2/cdn/assetdelivery/ortrsv2/ex_models/mnist.onnx")
|
||||
.commit_from_url("https://cdn.pyke.io/0/pyke:ort-rs/example-models@0.0.0/mnist.onnx")
|
||||
.expect("Could not download model from file");
|
||||
|
||||
let input0_shape = {
|
||||
|
||||
@@ -23,7 +23,7 @@ fn squeezenet_mushroom() -> ort::Result<()> {
|
||||
let mut session = Session::builder()?
|
||||
.with_optimization_level(GraphOptimizationLevel::Level1)?
|
||||
.with_intra_threads(1)?
|
||||
.commit_from_url("https://parcel.pyke.io/v2/cdn/assetdelivery/ortrsv2/ex_models/squeezenet.onnx")
|
||||
.commit_from_url("https://cdn.pyke.io/0/pyke:ort-rs/example-models@0.0.0/squeezenet.onnx")
|
||||
.expect("Could not download model from file");
|
||||
|
||||
let class_labels = get_imagenet_labels()?;
|
||||
|
||||
Reference in New Issue
Block a user