|
|
|
@@ -439,14 +439,15 @@ var ( |
|
|
|
DecompressOBSTaskName string |
|
|
|
|
|
|
|
//cloudbrain config |
|
|
|
CBAuthUser string |
|
|
|
CBAuthPassword string |
|
|
|
RestServerHost string |
|
|
|
JobPath string |
|
|
|
JobType string |
|
|
|
GpuTypes string |
|
|
|
DebugServerHost string |
|
|
|
ResourceSpecs string |
|
|
|
CBAuthUser string |
|
|
|
CBAuthPassword string |
|
|
|
RestServerHost string |
|
|
|
JobPath string |
|
|
|
CBCodePathPrefix string |
|
|
|
JobType string |
|
|
|
GpuTypes string |
|
|
|
DebugServerHost string |
|
|
|
ResourceSpecs string |
|
|
|
|
|
|
|
//benchmark config |
|
|
|
IsBenchmarkEnabled bool |
|
|
|
@@ -549,7 +550,7 @@ var ( |
|
|
|
RecordBeginTime string |
|
|
|
IgnoreMirrorRepo bool |
|
|
|
}{} |
|
|
|
|
|
|
|
|
|
|
|
Warn_Notify_Mails []string |
|
|
|
) |
|
|
|
|
|
|
|
@@ -1216,8 +1217,8 @@ func NewContext() { |
|
|
|
|
|
|
|
sec = Cfg.Section("decompress") |
|
|
|
DecompressAddress = sec.Key("HOST").MustString("http://192.168.207.34:39987") |
|
|
|
AuthUser = sec.Key("USER").MustString("cW4cMtH24eoWPE7X") |
|
|
|
AuthPassword = sec.Key("PASSWORD").MustString("4BPmgvK2hb2Eywwyp4YZRY4B7yQf4DAC") |
|
|
|
AuthUser = sec.Key("USER").MustString("") |
|
|
|
AuthPassword = sec.Key("PASSWORD").MustString("") |
|
|
|
|
|
|
|
sec = Cfg.Section("labelsystem") |
|
|
|
LabelTaskName = sec.Key("LabelTaskName").MustString("LabelRedisQueue") |
|
|
|
@@ -1225,10 +1226,11 @@ func NewContext() { |
|
|
|
DecompressOBSTaskName = sec.Key("DecompressOBSTaskName").MustString("LabelDecompressOBSQueue") |
|
|
|
|
|
|
|
sec = Cfg.Section("cloudbrain") |
|
|
|
CBAuthUser = sec.Key("USER").MustString("cW4cMtH24eoWPE7X") |
|
|
|
CBAuthPassword = sec.Key("PWD").MustString("4BPmgvK2hb2Eywwyp4YZRY4B7yQf4DAC") |
|
|
|
CBAuthUser = sec.Key("USER").MustString("") |
|
|
|
CBAuthPassword = sec.Key("PWD").MustString("") |
|
|
|
RestServerHost = sec.Key("REST_SERVER_HOST").MustString("http://192.168.202.73") |
|
|
|
JobPath = sec.Key("JOB_PATH").MustString("/datasets/minio/data/opendata/jobs/") |
|
|
|
CBCodePathPrefix = sec.Key("CODE_PATH_PREFIX").MustString("jobs/") |
|
|
|
DebugServerHost = sec.Key("DEBUG_SERVER_HOST").MustString("http://192.168.202.73") |
|
|
|
JobType = sec.Key("GPU_TYPE_DEFAULT").MustString("openidebug") |
|
|
|
GpuTypes = sec.Key("GPU_TYPES").MustString("") |
|
|
|
@@ -1236,31 +1238,31 @@ func NewContext() { |
|
|
|
|
|
|
|
sec = Cfg.Section("benchmark") |
|
|
|
IsBenchmarkEnabled = sec.Key("ENABLED").MustBool(false) |
|
|
|
BenchmarkCode = sec.Key("BENCHMARKCODE").MustString("https://yangzhx:justfortest123@git.openi.org.cn/yangzhx/detection_benchmark_script.git") |
|
|
|
BenchmarkServerHost = sec.Key("HOST").MustString("http://192.168.202.90:3366/") |
|
|
|
BenchmarkCode = sec.Key("BENCHMARKCODE").MustString("") |
|
|
|
BenchmarkServerHost = sec.Key("HOST").MustString("") |
|
|
|
BenchmarkCategory = sec.Key("CATEGORY").MustString("") |
|
|
|
|
|
|
|
sec = Cfg.Section("snn4imagenet") |
|
|
|
IsSnn4imagenetEnabled = sec.Key("ENABLED").MustBool(false) |
|
|
|
Snn4imagenetCode = sec.Key("SNN4IMAGENETCODE").MustString("https://yult:19910821ylt@git.openi.org.cn/yult/snn4imagenet_script.git") |
|
|
|
Snn4imagenetServerHost = sec.Key("HOST").MustString("http://192.168.207.76:8080/") |
|
|
|
Snn4imagenetCode = sec.Key("SNN4IMAGENETCODE").MustString("") |
|
|
|
Snn4imagenetServerHost = sec.Key("HOST").MustString("") |
|
|
|
|
|
|
|
sec = Cfg.Section("brainscore") |
|
|
|
IsBrainScoreEnabled = sec.Key("ENABLED").MustBool(false) |
|
|
|
BrainScoreCode = sec.Key("BRAINSCORECODE").MustString("https://yult:19910821ylt@git.openi.org.cn/yult/brainscore_script.git") |
|
|
|
BrainScoreServerHost = sec.Key("HOST").MustString("http://192.168.207.76:8080/") |
|
|
|
BrainScoreCode = sec.Key("BRAINSCORECODE").MustString("") |
|
|
|
BrainScoreServerHost = sec.Key("HOST").MustString("") |
|
|
|
|
|
|
|
sec = Cfg.Section("blockchain") |
|
|
|
BlockChainHost = sec.Key("HOST").MustString("http://192.168.136.66:3302/") |
|
|
|
CommitValidDate = sec.Key("COMMIT_VALID_DATE").MustString("2021-01-15") |
|
|
|
|
|
|
|
sec = Cfg.Section("obs") |
|
|
|
Endpoint = sec.Key("ENDPOINT").MustString("112.95.163.82") |
|
|
|
Endpoint = sec.Key("ENDPOINT").MustString("") |
|
|
|
AccessKeyID = sec.Key("ACCESS_KEY_ID").MustString("") |
|
|
|
SecretAccessKey = sec.Key("SECRET_ACCESS_KEY").MustString("") |
|
|
|
Bucket = sec.Key("BUCKET").MustString("testopendata") |
|
|
|
Location = sec.Key("LOCATION").MustString("cn-south-222") |
|
|
|
BasePath = sec.Key("BASE_PATH").MustString("attachment/") |
|
|
|
Bucket = sec.Key("BUCKET").MustString("") |
|
|
|
Location = sec.Key("LOCATION").MustString("") |
|
|
|
BasePath = sec.Key("BASE_PATH").MustString("") |
|
|
|
TrainJobModelPath = sec.Key("TrainJobModel_Path").MustString("job/") |
|
|
|
OutPutPath = sec.Key("Output_Path").MustString("output/") |
|
|
|
CodePathPrefix = sec.Key("CODE_PATH_PREFIX").MustString("code/") |
|
|
|
@@ -1268,17 +1270,17 @@ func NewContext() { |
|
|
|
PROXYURL = sec.Key("PROXY_URL").MustString("") |
|
|
|
|
|
|
|
sec = Cfg.Section("modelarts") |
|
|
|
ModelArtsHost = sec.Key("ENDPOINT").MustString("112.95.163.80") |
|
|
|
IamHost = sec.Key("IAMHOST").MustString("112.95.163.80") |
|
|
|
ModelArtsHost = sec.Key("ENDPOINT").MustString("") |
|
|
|
IamHost = sec.Key("IAMHOST").MustString("") |
|
|
|
ProjectID = sec.Key("PROJECT_ID").MustString("") |
|
|
|
ProjectName = sec.Key("PROJECT_NAME").MustString("") |
|
|
|
ModelArtsUsername = sec.Key("USERNAME").MustString("") |
|
|
|
ModelArtsPassword = sec.Key("PASSWORD").MustString("") |
|
|
|
ModelArtsDomain = sec.Key("DOMAIN").MustString("cn-south-222") |
|
|
|
ModelArtsDomain = sec.Key("DOMAIN").MustString("") |
|
|
|
AllowedOrg = sec.Key("ORGANIZATION").MustString("") |
|
|
|
ProfileID = sec.Key("PROFILE_ID").MustString("") |
|
|
|
PoolInfos = sec.Key("POOL_INFOS").MustString("") |
|
|
|
Flavor = sec.Key("FLAVOR").MustString("modelarts.bm.910.arm.public.2") |
|
|
|
Flavor = sec.Key("FLAVOR").MustString("") |
|
|
|
ResourcePools = sec.Key("Resource_Pools").MustString("") |
|
|
|
Engines = sec.Key("Engines").MustString("") |
|
|
|
EngineVersions = sec.Key("Engine_Versions").MustString("") |
|
|
|
@@ -1286,10 +1288,10 @@ func NewContext() { |
|
|
|
TrainJobFLAVORINFOS = sec.Key("TrainJob_FLAVOR_INFOS").MustString("") |
|
|
|
|
|
|
|
sec = Cfg.Section("elk") |
|
|
|
ElkUrl = sec.Key("ELKURL").MustString("http://192.168.207.35:5601/internal/bsearch") |
|
|
|
ElkUser = sec.Key("ELKUSER").MustString("Qizhi") |
|
|
|
ElkPassword = sec.Key("ELKPASSWORD").MustString("Pcl2020") |
|
|
|
Index = sec.Key("INDEX").MustString("filebeat-7.3.2*") |
|
|
|
ElkUrl = sec.Key("ELKURL").MustString("") |
|
|
|
ElkUser = sec.Key("ELKUSER").MustString("") |
|
|
|
ElkPassword = sec.Key("ELKPASSWORD").MustString("") |
|
|
|
Index = sec.Key("INDEX").MustString("") |
|
|
|
TimeField = sec.Key("TIMEFIELD").MustString(" @timestamptest") |
|
|
|
ElkTimeFormat = sec.Key("ELKTIMEFORMAT").MustString("date_time") |
|
|
|
|
|
|
|
|