mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-12 20:58:51 +00:00
- 新增机器翻译模块:支持 200+ 种语言之间的相互翻译
- 人脸识别模块:修复批量删除人脸数据时的异常问题 - 人脸识别模块:修复人脸检索 Top大于 1 时报异常问题
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<version>1.0.16</version>
|
||||
<name>smartjavaai-ocr</name>
|
||||
<version>1.0.17</version>
|
||||
<name>smartjavaai-translate</name>
|
||||
<description>SmartJavaAI</description>
|
||||
<url>https://github.com/geekwenjie/SmartJavaAI</url>
|
||||
<licenses>
|
||||
|
||||
@@ -95,7 +95,7 @@ public class TranslationModelFactory {
|
||||
// 初始化默认算法
|
||||
static {
|
||||
registerCommonDetModel("NLLB_MODEL", NllbModel.class);
|
||||
log.info("缓存目录:{}", Config.getCachePath());
|
||||
log.debug("缓存目录:{}", Config.getCachePath());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -91,8 +91,8 @@ public class NllbModel implements TranslationModel{
|
||||
tokenizer = HuggingFaceTokenizer.newInstance(tokenizerPath);
|
||||
//初始化searchConfig
|
||||
this.searchConfig = new NllbSearchConfig();
|
||||
log.info("当前设备: " + nllbModel.getNDManager().getDevice());
|
||||
log.info("当前引擎: " + Engine.getInstance().getEngineName());
|
||||
log.debug("当前设备: " + nllbModel.getNDManager().getDevice());
|
||||
log.debug("当前引擎: " + Engine.getInstance().getEngineName());
|
||||
} catch (IOException | ModelNotFoundException | MalformedModelException e) {
|
||||
throw new TranslationException("模型加载失败", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user