Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
fix(djl): set onnxengine manually
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Oct 3, 2024
1 parent a9b01f0 commit 41d15d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ltd/guimc/dlm/DLModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void init() {
Files.copy(modelStream, tempFile.toPath(), StandardCopyOption.REPLACE_EXISTING);

// 使用 DJL (Deep Java Library) 加载 ONNX 模型
model = Model.newInstance("Nailong");
model = Model.newInstance("Onnx");
model.load(tempFile.toPath());

// 初始化模型
Expand Down

0 comments on commit 41d15d5

Please sign in to comment.