You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2023/03/10 15:06:41 UTC

[camel] branch camel-3.20.x updated: CAMEL-19131. Upgrade to Deep Java Library 0.21.0 (#9498)

This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.20.x by this push:
     new f811858bc3d CAMEL-19131. Upgrade to Deep Java Library 0.21.0 (#9498)
f811858bc3d is described below

commit f811858bc3dfd77e5bfba83b65a23a16e811ccff
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Fri Mar 10 10:06:34 2023 -0500

    CAMEL-19131. Upgrade to Deep Java Library 0.21.0 (#9498)
    
    * CAMEL-19131. Upgrade to Deep Java Library 0.21.0
    
    * CAMEL-19131. Upgrade to Deep Java Library 0.21.0
---
 .../component/djl/ImageClassificationLocalTest.java    |   2 +-
 .../camel/component/djl/ImageClassificationTest.java   |   2 +-
 .../src/test/resources/models/mnist/mlp-0007.params    | Bin 438234 -> 0 bytes
 .../src/test/resources/models/mnist/mlp-0020.params    | Bin 0 -> 438290 bytes
 parent/pom.xml                                         |   4 ++--
 5 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationLocalTest.java b/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationLocalTest.java
index f244c20178b..27d387df075 100644
--- a/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationLocalTest.java
+++ b/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationLocalTest.java
@@ -60,7 +60,7 @@ public class ImageClassificationLocalTest extends CamelTestSupport {
         mock.expectedMinimumMessageCount(98);
         mock.await();
         long count = mock.getExchanges().stream().filter(exchange -> exchange.getIn().getBody(Boolean.class)).count();
-        assertEquals(98, count);
+        assertEquals(97, count);
     }
 
     @Override
diff --git a/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationTest.java b/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationTest.java
index e17d98f55e3..b482f4962e2 100644
--- a/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationTest.java
+++ b/components/camel-djl/src/test/java/org/apache/camel/component/djl/ImageClassificationTest.java
@@ -37,7 +37,7 @@ public class ImageClassificationTest extends CamelTestSupport {
             public void configure() {
                 from("file:src/test/resources/data/mnist?recursive=true&noop=true")
                         .convertBodyTo(byte[].class)
-                        .to("djl:cv/image_classification?artifactId=ai.djl.mxnet:mlp:0.0.3")
+                        .to("djl:cv/image_classification?artifactId=ai.djl.mxnet:mobilenet:0.0.3")
                         .log("${header.CamelFileName} = ${body}")
                         .to("mock:result");
             }
diff --git a/components/camel-djl/src/test/resources/models/mnist/mlp-0007.params b/components/camel-djl/src/test/resources/models/mnist/mlp-0007.params
deleted file mode 100644
index 96ea89d16a3..00000000000
Binary files a/components/camel-djl/src/test/resources/models/mnist/mlp-0007.params and /dev/null differ
diff --git a/components/camel-djl/src/test/resources/models/mnist/mlp-0020.params b/components/camel-djl/src/test/resources/models/mnist/mlp-0020.params
new file mode 100644
index 00000000000..7d6c4625c9a
Binary files /dev/null and b/components/camel-djl/src/test/resources/models/mnist/mlp-0020.params differ
diff --git a/parent/pom.xml b/parent/pom.xml
index 50320da6bd2..e0513bdc166 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -147,9 +147,9 @@
         <directory-watcher-version>0.17.1</directory-watcher-version>
         <disruptor-version>3.4.4</disruptor-version>
         <dnsjava-version>3.5.1</dnsjava-version>
-        <djl-version>0.19.0</djl-version>
+        <djl-version>0.21.0</djl-version>
         <djl-mxnet-native-version>1.8.0</djl-mxnet-native-version>
-        <djl-pytorch-native-version>1.8.1</djl-pytorch-native-version>
+        <djl-pytorch-native-version>1.9.1</djl-pytorch-native-version>
         <djl-tensorflow-native-version>2.4.1</djl-tensorflow-native-version>
         <docker-java-version>3.2.13</docker-java-version>
         <dozer-version>6.5.2</dozer-version>