1.模型加载
This commit is contained in:
parent
55ba50254a
commit
58ae758ece
|
@ -43,10 +43,10 @@ public class YoloModelRegistry {
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void loadModelsOnStartup() throws OrtException {
|
public void loadModelsOnStartup() throws OrtException {
|
||||||
// List<ModelConfigEntity> configs = modelConfigMapper.selectList(Wrappers.emptyWrapper());
|
List<ModelConfigEntity> configs = modelConfigMapper.selectList(Wrappers.emptyWrapper());
|
||||||
// for (ModelConfigEntity config : configs) {
|
for (ModelConfigEntity config : configs) {
|
||||||
// loadModel(config);
|
loadModel(config);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadModel(ModelConfigEntity config) throws OrtException {
|
public void loadModel(ModelConfigEntity config) throws OrtException {
|
||||||
|
|
Loading…
Reference in New Issue