This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new fbe2ae8 Polished
fbe2ae8 is described below
commit fbe2ae801e4dffd08645b53ea09a3a08b46f7d64
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Apr 14 08:06:23 2020 +0200
Polished
---
components/camel-djl/pom.xml | 5 ----
.../org/apache/camel/component/djl/djl.json | 12 +++++-----
.../camel-djl/src/main/docs/djl-component.adoc | 28 +++++++++++-----------
.../apache/camel/component/djl/DJLComponent.java | 5 ----
.../apache/camel/component/djl/DJLEndpoint.java | 17 ++++---------
.../apache/camel/component/djl/DJLProducer.java | 7 ------
.../component/djl/model/AbstractPredictor.java | 1 -
.../model/CustomImageClassificationPredictor.java | 1 -
.../djl/model/CustomObjectDetectionPredictor.java | 1 -
.../djl/model/ModelPredictorProducer.java | 1 -
.../djl/model/ZooImageClassificationPredictor.java | 1 -
.../djl/model/ZooObjectDetectionPredictor.java | 1 -
.../component/ComponentsBuilderFactory.java | 6 ++---
.../component/dsl/DjlComponentBuilderFactory.java | 10 ++++----
.../src/generated/resources/metadata.json | 10 ++++----
.../endpoint/dsl/DJLEndpointBuilderFactory.java | 19 ++++++++-------
docs/components/modules/ROOT/nav.adoc | 2 +-
.../modules/ROOT/pages/djl-component.adoc | 28 +++++++++++-----------
18 files changed, 63 insertions(+), 92 deletions(-)
diff --git a/components/camel-djl/pom.xml b/components/camel-djl/pom.xml
index 7a1c1a0..9c5e9cf 100644
--- a/components/camel-djl/pom.xml
+++ b/components/camel-djl/pom.xml
@@ -15,11 +15,6 @@
<name>Camel :: Deep Java Library</name>
<description>Camel Deep Java Library support</description>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- </properties>
-
<dependencies>
<!-- camel -->
<dependency>
diff --git
a/components/camel-djl/src/generated/resources/org/apache/camel/component/djl/djl.json
b/components/camel-djl/src/generated/resources/org/apache/camel/component/djl/djl.json
index 6021878..2a397d9 100644
---
a/components/camel-djl/src/generated/resources/org/apache/camel/component/djl/djl.json
+++
b/components/camel-djl/src/generated/resources/org/apache/camel/component/djl/djl.json
@@ -5,9 +5,9 @@
"scheme": "djl",
"extendsScheme": "",
"syntax": "djl:application",
- "title": "DJL",
- "description": "Represents a DJL endpoint.",
- "label": "deeplearning",
+ "title": "Deep Java Library",
+ "description": "The Deep Java Library component is used to infer deep
learning models.",
+ "label": "ai,deeplearning",
"deprecated": false,
"async": false,
"consumerOnly": false,
@@ -26,10 +26,10 @@
},
"properties": {
"application": { "kind": "path", "displayName": "Application", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "secret":
false, "description": "Application name" },
- "artifactId": { "kind": "parameter", "displayName": "Artifact Id",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"secret": false, "description": "Model Artifact" },
+ "artifactId": { "kind": "parameter", "displayName": "Artifact Id",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "secret": false,
"description": "Model Artifact" },
"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a producer may otherwise
fail during starting and cause the [...]
- "model": { "kind": "parameter", "displayName": "Model", "group":
"producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"secret": false, "description": "Model" },
- "translator": { "kind": "parameter", "displayName": "Translator", "group":
"producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"secret": false, "description": "Translator" },
+ "model": { "kind": "parameter", "displayName": "Model", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "description":
"Model" },
+ "translator": { "kind": "parameter", "displayName": "Translator", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "description":
"Translator" },
"basicPropertyBinding": { "kind": "parameter", "displayName": "Basic
Property Binding", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": false, "description": "Whether the endpoint should use basic
property binding (Camel 2.x) or the newer property binding with additional
capabilities" },
"synchronous": { "kind": "parameter", "displayName": "Synchronous",
"group": "advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue":
"false", "description": "Sets whether synchronous processing should be strictly
used, or Camel is allowed to use asynchronous processing (if supported)." }
}
diff --git a/components/camel-djl/src/main/docs/djl-component.adoc
b/components/camel-djl/src/main/docs/djl-component.adoc
index 5de8bde..738079e 100644
--- a/components/camel-djl/src/main/docs/djl-component.adoc
+++ b/components/camel-djl/src/main/docs/djl-component.adoc
@@ -1,11 +1,10 @@
-[[djl-component]]
-= DJL Component
+= Deep Java Library Component
*Since Camel 3.2*
-
*Since Camel 3.2*
+
// HEADER START
*Only producer is supported*
// HEADER END
@@ -29,7 +28,7 @@ following dependency to their `pom.xml`:
----
// component options: START
-The DJL component supports 2 options, which are listed below.
+The Deep Java Library component supports 2 options, which are listed below.
@@ -44,7 +43,7 @@ The DJL component supports 2 options, which are listed below.
The DJL component only supports producer endpoints.
// endpoint options: START
-The DJL endpoint is configured using URI syntax:
+The Deep Java Library endpoint is configured using URI syntax:
----
djl:application
@@ -78,7 +77,7 @@ with the following path and query parameters:
// endpoint options: END
-=== Model Zoo
+== Model Zoo
The following table contains supported models in the model zoo:
@@ -104,13 +103,13 @@ The following table contains supported models in the
model zoo:
|===
-=== DJL Engine implementation
+== DJL Engine implementation
Because DJL is deep learning framework agnostic, you don't have to make a
choice between frameworks when creating your projects.
You can switch frameworks at any point.
To ensure the best performance, DJL also provides automatic CPU/GPU choice
based on hardware configuration.
-==== MxNet engine
+=== MxNet engine
You can pull the MXNet engine from the central Maven repository by including
the following dependency:
@@ -139,7 +138,7 @@ It will automatically determine the appropriate jars for
your system based on th
More information about
https://github.com/awslabs/djl/blob/master/mxnet/mxnet-engine/README.md#installation[MxNet
engine installation]
-==== PyTorch engine
+=== PyTorch engine
You can pull the PyTorch engine from the central Maven repository by including
the following dependency:
@@ -168,28 +167,29 @@ It will automatically determine the appropriate jars for
your system based on th
More information about
https://github.com/awslabs/djl/blob/master/pytorch/pytorch-engine/README.md#installation[PyTorch
engine installation]
-==== Tensorflow engine
+=== Tensorflow engine
Right now, the TensorFlow Engine is still experimental.
-=== Examples
+== Examples
+
+=== MNIST image classification from file
-==== MNIST image classification from file
[source,java]
----
from("file:/data/mnist/0/10.png")
.to("djl:cv/image_classification?artifactId=ai.djl.mxnet:mlp:0.0.1");
----
-==== Object detection
+=== Object detection
[source,java]
----
from("file:/data/mnist/0/10.png")
.to("djl:cv/image_classification?artifactId=ai.djl.mxnet:mlp:0.0.1");
----
-==== Custom deep learning model
+=== Custom deep learning model
[source,java]
----
// create deep learning model
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLComponent.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLComponent.java
index 9bb20f6..d933918 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLComponent.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLComponent.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl;
import java.util.Map;
@@ -24,10 +23,6 @@ import org.apache.camel.spi.annotations.Component;
import org.apache.camel.support.DefaultComponent;
import org.apache.camel.util.ObjectHelper;
-/**
- * Represents the component that manages {@link DJLEndpoint}.
- */
-
@Component("djl")
public class DJLComponent extends DefaultComponent {
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLEndpoint.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLEndpoint.java
index 4a10957..d888598 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLEndpoint.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLEndpoint.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl;
import org.apache.camel.Consumer;
@@ -27,24 +26,18 @@ import org.apache.camel.spi.UriPath;
import org.apache.camel.support.DefaultEndpoint;
/**
- * Represents a DJL endpoint.
+ * The Deep Java Library component is used to infer deep learning models.
*/
-@UriEndpoint(firstVersion = "3.2.0", scheme = "djl", title = "DJL", syntax =
"djl:application", label = "deeplearning", producerOnly = true)
+@UriEndpoint(firstVersion = "3.2.0", scheme = "djl", title = "Deep Java
Library", syntax = "djl:application", label = "ai,deeplearning", producerOnly =
true)
public class DJLEndpoint extends DefaultEndpoint {
@UriPath @Metadata(required = true, description = "Application name")
private String application;
-
- @Metadata(required = false)
- @UriParam(label = "producer", description = "Model Artifact")
+ @UriParam(description = "Model Artifact")
private String artifactId;
-
- @Metadata(required = false)
- @UriParam(label = "producer", description = "Model")
+ @UriParam(description = "Model")
private String model;
-
- @Metadata(required = false)
- @UriParam(label = "producer", description = "Translator")
+ @UriParam(description = "Translator")
private String translator;
public DJLEndpoint(String uri, DJLComponent component, String application)
{
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLProducer.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLProducer.java
index b23b11c..1a08116 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLProducer.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/DJLProducer.java
@@ -14,21 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl;
import org.apache.camel.Exchange;
import org.apache.camel.component.djl.model.AbstractPredictor;
import org.apache.camel.component.djl.model.ModelPredictorProducer;
import org.apache.camel.support.DefaultProducer;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-/**
- * The DJL producer.
- */
public class DJLProducer extends DefaultProducer {
- private static final Logger LOG =
LoggerFactory.getLogger(DJLProducer.class);
private AbstractPredictor abstractPredictor;
public DJLProducer(DJLEndpoint endpoint) throws Exception {
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java
index 6e54e57..65cc538 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/AbstractPredictor.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl.model;
import org.apache.camel.Exchange;
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomImageClassificationPredictor.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomImageClassificationPredictor.java
index 1bbff9e..f7bf6c8 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomImageClassificationPredictor.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomImageClassificationPredictor.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl.model;
import java.awt.image.BufferedImage;
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomObjectDetectionPredictor.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomObjectDetectionPredictor.java
index b1c6b35..6ad600b 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomObjectDetectionPredictor.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/CustomObjectDetectionPredictor.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl.model;
import java.awt.image.BufferedImage;
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ModelPredictorProducer.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ModelPredictorProducer.java
index ba1815c..88cbd47 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ModelPredictorProducer.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ModelPredictorProducer.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl.model;
import static ai.djl.Application.CV.IMAGE_CLASSIFICATION;
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooImageClassificationPredictor.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooImageClassificationPredictor.java
index 5a2eed1..a4eb796 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooImageClassificationPredictor.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooImageClassificationPredictor.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl.model;
import java.awt.image.BufferedImage;
diff --git
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooObjectDetectionPredictor.java
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooObjectDetectionPredictor.java
index 0605460..c75f51f 100644
---
a/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooObjectDetectionPredictor.java
+++
b/components/camel-djl/src/main/java/org/apache/camel/component/djl/model/ZooObjectDetectionPredictor.java
@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.camel.component.djl.model;
import java.awt.image.BufferedImage;
diff --git
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 91c6aa4..2b23ab9 100644
---
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -1217,10 +1217,10 @@ public interface ComponentsBuilderFactory {
return
org.apache.camel.builder.component.dsl.DisruptorVmComponentBuilderFactory.disruptorVm();
}
/**
- * DJL (camel-djl)
- * Represents a DJL endpoint.
+ * Deep Java Library (camel-djl)
+ * The Deep Java Library component is used to infer deep learning models.
*
- * Category: deeplearning
+ * Category: ai,deeplearning
* Since: 3.2
* Maven coordinates: org.apache.camel:camel-djl
*/
diff --git
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
index c07ec9f..66acdb5 100644
---
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
+++
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DjlComponentBuilderFactory.java
@@ -23,7 +23,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.djl.DJLComponent;
/**
- * Represents a DJL endpoint.
+ * The Deep Java Library component is used to infer deep learning models.
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@@ -31,10 +31,10 @@ import org.apache.camel.component.djl.DJLComponent;
public interface DjlComponentBuilderFactory {
/**
- * DJL (camel-djl)
- * Represents a DJL endpoint.
+ * Deep Java Library (camel-djl)
+ * The Deep Java Library component is used to infer deep learning models.
*
- * Category: deeplearning
+ * Category: ai,deeplearning
* Since: 3.2
* Maven coordinates: org.apache.camel:camel-djl
*/
@@ -43,7 +43,7 @@ public interface DjlComponentBuilderFactory {
}
/**
- * Builder for the DJL component.
+ * Builder for the Deep Java Library component.
*/
interface DjlComponentBuilder extends ComponentBuilder<DJLComponent> {
/**
diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json
b/core/camel-componentdsl/src/generated/resources/metadata.json
index 7065b2c..b207255 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -2259,18 +2259,17 @@
"scheme": "djl",
"extendsScheme": "",
"syntax": "djl:application",
- "title": "DJL",
- "description": "Represents a DJL endpoint.",
- "label": "deeplearning",
+ "title": "Deep Java Library",
+ "description": "The Deep Java Library component is used to infer deep
learning models.",
+ "label": "ai,deeplearning",
"deprecated": false,
- "deprecationNote": "deeplearning",
+ "deprecationNote": "ai,deeplearning",
"async": false,
"consumerOnly": false,
"producerOnly": true,
"lenientProperties": false,
"javaType": "org.apache.camel.component.djl.DJLComponent",
"firstVersion": "3.2.0",
- "supportLevel": "Stable",
"groupId": "org.apache.camel",
"artifactId": "camel-djl",
"version": "3.3.0-SNAPSHOT"
@@ -7621,6 +7620,7 @@
"lenientProperties": false,
"javaType": "org.apache.camel.component.zookeeper.ZooKeeperComponent",
"firstVersion": "2.9.0",
+ "supportLevel": "Stable",
"groupId": "org.apache.camel",
"artifactId": "camel-zookeeper",
"version": "3.3.0-SNAPSHOT"
diff --git
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
index 5fceeb0..2594c29 100644
---
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DJLEndpointBuilderFactory.java
@@ -22,7 +22,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Represents a DJL endpoint.
+ * The Deep Java Library component is used to infer deep learning models.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -31,7 +31,7 @@ public interface DJLEndpointBuilderFactory {
/**
- * Builder for endpoint for the DJL component.
+ * Builder for endpoint for the Deep Java Library component.
*/
public interface DJLEndpointBuilder extends EndpointProducerBuilder {
default AdvancedDJLEndpointBuilder advanced() {
@@ -113,7 +113,7 @@ public interface DJLEndpointBuilderFactory {
}
/**
- * Advanced builder for endpoint for the DJL component.
+ * Advanced builder for endpoint for the Deep Java Library component.
*/
public interface AdvancedDJLEndpointBuilder
extends
@@ -179,10 +179,11 @@ public interface DJLEndpointBuilderFactory {
public interface DJLBuilders {
/**
- * DJL (camel-djl)
- * Represents a DJL endpoint.
+ * Deep Java Library (camel-djl)
+ * The Deep Java Library component is used to infer deep learning
+ * models.
*
- * Category: deeplearning
+ * Category: ai,deeplearning
* Since: 3.2
* Maven coordinates: org.apache.camel:camel-djl
*
@@ -196,10 +197,10 @@ public interface DJLEndpointBuilderFactory {
}
}
/**
- * DJL (camel-djl)
- * Represents a DJL endpoint.
+ * Deep Java Library (camel-djl)
+ * The Deep Java Library component is used to infer deep learning models.
*
- * Category: deeplearning
+ * Category: ai,deeplearning
* Since: 3.2
* Maven coordinates: org.apache.camel:camel-djl
*
diff --git a/docs/components/modules/ROOT/nav.adoc
b/docs/components/modules/ROOT/nav.adoc
index dd45a65..f4f17f2 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -101,11 +101,11 @@
** xref:debezium-mysql-component.adoc[Debezium MySQL Connector Component]
** xref:debezium-postgres-component.adoc[Debezium PostgresSQL Connector
Component]
** xref:debezium-sqlserver-component.adoc[Debezium SQL Server Connector
Component]
+** xref:djl-component.adoc[Deep Java Library Component]
** xref:digitalocean-component.adoc[DigitalOcean Component]
** xref:direct-component.adoc[Direct Component]
** xref:direct-vm-component.adoc[Direct VM Component]
** xref:disruptor-component.adoc[Disruptor Component]
-** xref:djl-component.adoc[DJL Component]
** xref:dns-component.adoc[DNS Component]
** xref:docker-component.adoc[Docker Component]
** xref:dozer-component.adoc[Dozer Component]
diff --git a/docs/components/modules/ROOT/pages/djl-component.adoc
b/docs/components/modules/ROOT/pages/djl-component.adoc
index 31c4534..3d03703 100644
--- a/docs/components/modules/ROOT/pages/djl-component.adoc
+++ b/docs/components/modules/ROOT/pages/djl-component.adoc
@@ -1,12 +1,11 @@
-[[djl-component]]
-= DJL Component
+= Deep Java Library Component
:page-source: components/camel-djl/src/main/docs/djl-component.adoc
*Since Camel 3.2*
-
*Since Camel 3.2*
+
// HEADER START
*Only producer is supported*
// HEADER END
@@ -30,7 +29,7 @@ following dependency to their `pom.xml`:
----
// component options: START
-The DJL component supports 2 options, which are listed below.
+The Deep Java Library component supports 2 options, which are listed below.
@@ -45,7 +44,7 @@ The DJL component supports 2 options, which are listed below.
The DJL component only supports producer endpoints.
// endpoint options: START
-The DJL endpoint is configured using URI syntax:
+The Deep Java Library endpoint is configured using URI syntax:
----
djl:application
@@ -79,7 +78,7 @@ with the following path and query parameters:
// endpoint options: END
-=== Model Zoo
+== Model Zoo
The following table contains supported models in the model zoo:
@@ -105,13 +104,13 @@ The following table contains supported models in the
model zoo:
|===
-=== DJL Engine implementation
+== DJL Engine implementation
Because DJL is deep learning framework agnostic, you don't have to make a
choice between frameworks when creating your projects.
You can switch frameworks at any point.
To ensure the best performance, DJL also provides automatic CPU/GPU choice
based on hardware configuration.
-==== MxNet engine
+=== MxNet engine
You can pull the MXNet engine from the central Maven repository by including
the following dependency:
@@ -140,7 +139,7 @@ It will automatically determine the appropriate jars for
your system based on th
More information about
https://github.com/awslabs/djl/blob/master/mxnet/mxnet-engine/README.md#installation[MxNet
engine installation]
-==== PyTorch engine
+=== PyTorch engine
You can pull the PyTorch engine from the central Maven repository by including
the following dependency:
@@ -169,28 +168,29 @@ It will automatically determine the appropriate jars for
your system based on th
More information about
https://github.com/awslabs/djl/blob/master/pytorch/pytorch-engine/README.md#installation[PyTorch
engine installation]
-==== Tensorflow engine
+=== Tensorflow engine
Right now, the TensorFlow Engine is still experimental.
-=== Examples
+== Examples
+
+=== MNIST image classification from file
-==== MNIST image classification from file
[source,java]
----
from("file:/data/mnist/0/10.png")
.to("djl:cv/image_classification?artifactId=ai.djl.mxnet:mlp:0.0.1");
----
-==== Object detection
+=== Object detection
[source,java]
----
from("file:/data/mnist/0/10.png")
.to("djl:cv/image_classification?artifactId=ai.djl.mxnet:mlp:0.0.1");
----
-==== Custom deep learning model
+=== Custom deep learning model
[source,java]
----
// create deep learning model