doum
6 小时以前 ce44d803b73a65b2cc31db5bcc662139029463d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.doumee.service.business.snapshot;
 
 
 
import lombok.Data;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
import org.springframework.stereotype.Component;
 
 
 
@Data
 
@Component
 
@ConfigurationProperties(prefix = "snapshot.infer")
 
public class SnapshotInferProperties {
 
 
 
    private String baseUrl = "http://127.0.0.1:8095";
 
    private int connectTimeoutMs = 5000;
 
    private int readTimeoutMs = 600000;
 
    private boolean enableAsr = true;
 
    private boolean autoOnDownload = true;
 
    private double sampleFps = 0.5;
 
    /** 推理失败时是否回退到本地 25%/75% mock(生产环境应为 false) */
 
    private boolean failOpenMock = false;
 
}