Skip to content

Commit

Permalink
paddlepaddle notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
sindhuvahinis committed Jul 13, 2023
1 parent 7fc2099 commit fe021cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jupyter/paddlepaddle/face_mask_detection_paddlepaddle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"source": [
"// %mavenRepo snapshots https://oss.sonatype.org/content/repositories/snapshots/\n",
"\n",
"%maven ai.djl:api:0.22.1\n",
"%maven ai.djl.paddlepaddle:paddlepaddle-model-zoo:0.22.1\n",
"%maven ai.djl:api:0.23.0\n",
"%maven ai.djl.paddlepaddle:paddlepaddle-model-zoo:0.23.0\n",
"%maven org.slf4j:slf4j-simple:1.7.32\n",
"\n",
"// second engine to do preprocessing and postprocessing\n",
"%maven ai.djl.pytorch:pytorch-engine:0.22.1"
"%maven ai.djl.pytorch:pytorch-engine:0.23.0"
]
},
{
Expand Down Expand Up @@ -207,7 +207,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"To run inference with this model, we need to load the model from Paddle model zoo. To load a model in DJL, you need to specify a [`Criteria`](https://javadoc.io/doc/ai.djl/api/0.22.1/ai/djl/repository/zoo/Criteria.html). `Criteria` is used identify where to load the model and which `Translator` should apply to it. Then, all we need to do is to get a [`Predictor`](https://javadoc.io/doc/ai.djl/api/latest/ai/djl/inference/Predictor.html) from the model and use it to do inference:"
"To run inference with this model, we need to load the model from Paddle model zoo. To load a model in DJL, you need to specify a [`Criteria`](https://javadoc.io/doc/ai.djl/api/0.23.1/ai/djl/repository/zoo/Criteria.html). `Criteria` is used identify where to load the model and which `Translator` should apply to it. Then, all we need to do is to get a [`Predictor`](https://javadoc.io/doc/ai.djl/api/latest/ai/djl/inference/Predictor.html) from the model and use it to do inference:"
]
},
{
Expand Down

0 comments on commit fe021cc

Please sign in to comment.