| @@ -1092,6 +1092,7 @@ type DatasetDownload struct { | |||||
| DatasetName string `json:"dataset_name"` | DatasetName string `json:"dataset_name"` | ||||
| DatasetDownloadLink string `json:"dataset_download_link"` | DatasetDownloadLink string `json:"dataset_download_link"` | ||||
| RepositoryLink string `json:"repository_link"` | RepositoryLink string `json:"repository_link"` | ||||
| IsDelete bool `json:"is_delete"` | |||||
| } | } | ||||
| type DataSource struct { | type DataSource struct { | ||||
| @@ -959,6 +959,7 @@ unfavorite=Unlike | |||||
| favorite=Like | favorite=Like | ||||
| disassociate=Disassociate | disassociate=Disassociate | ||||
| benchmark_dataset_tip=Note: first use the dataset function to upload the model, and then select the model from the dataset list. | benchmark_dataset_tip=Note: first use the dataset function to upload the model, and then select the model from the dataset list. | ||||
| file_deleted=The file has been deleted | |||||
| [repo] | [repo] | ||||
| owner = Owner | owner = Owner | ||||
| @@ -1140,7 +1141,7 @@ modelarts.train_job.compute_node=Compute Node | |||||
| modelarts.create_model = Create Model | modelarts.create_model = Create Model | ||||
| modelarts.model_label=Model Label | modelarts.model_label=Model Label | ||||
| modelarts.infer_dataset = Inference Dataset | modelarts.infer_dataset = Inference Dataset | ||||
| modelarts.train_job.label_place=Input labels, multiple labels are separated by spaces | |||||
| modelarts.train_job.basic_info=Basic Info | modelarts.train_job.basic_info=Basic Info | ||||
| modelarts.train_job.job_status=Job Status | modelarts.train_job.job_status=Job Status | ||||
| @@ -1221,7 +1222,10 @@ model_Evaluation_not_created = Model evaluation has not been created | |||||
| repo_not_initialized = Code version: You have not initialized the code repository, please <a href="%s"> initialized </a> first ; | repo_not_initialized = Code version: You have not initialized the code repository, please <a href="%s"> initialized </a> first ; | ||||
| debug_task_running_limit =Running time: no more than 4 hours, it will automatically stop if it exceeds 4 hours; | debug_task_running_limit =Running time: no more than 4 hours, it will automatically stop if it exceeds 4 hours; | ||||
| dataset_desc = Dataset: Cloud Brain 1 provides CPU/GPU,Cloud Brain 2 provides Ascend NPU.And dataset also needs to be uploaded to the corresponding environment; | dataset_desc = Dataset: Cloud Brain 1 provides CPU/GPU,Cloud Brain 2 provides Ascend NPU.And dataset also needs to be uploaded to the corresponding environment; | ||||
| platform_instructions = Instructions for use: You can refer to the <a href="https://git.openi.org.cn/zeizei/OpenI_Learning"> OpenI_Learning </a> course of Openi AI collaboration platform. | |||||
| platform_instructions = Instructions for use: You can refer to the <a href="https://git.openi.org.cn/zeizei/OpenI_Learning"> OpenI_Learning </a> course of Qizhi AI collaboration platform. | |||||
| platform_instructions1 = Instructions for use: You can refer to the | |||||
| platform_instructions2 = OpenI_Learning | |||||
| platform_instructions3 = course of Openi AI collaboration platform. | |||||
| model_not_exist = Model file: You do not have a model file yet, please generate and <a href="%s/modelmanage/show_model">export the model</a> through the <a href="%s/modelarts/train-job">training task</a> first ; | model_not_exist = Model file: You do not have a model file yet, please generate and <a href="%s/modelmanage/show_model">export the model</a> through the <a href="%s/modelarts/train-job">training task</a> first ; | ||||
| benchmark_leaderboards = Benchmark leaderboards | benchmark_leaderboards = Benchmark leaderboards | ||||
| @@ -1244,11 +1248,11 @@ model.convert=Model Transformation | |||||
| model.list=Model List | model.list=Model List | ||||
| model.manage.create_new_convert_task=Create Model Transformation Task | model.manage.create_new_convert_task=Create Model Transformation Task | ||||
| model.manage.notcreatemodel=No model has been created. | |||||
| model.manage.notcreatemodel=No model has been created | |||||
| model.manage.init1=Code version: You have not initialized the code repository, please | model.manage.init1=Code version: You have not initialized the code repository, please | ||||
| model.manage.init2=initialized first ; | model.manage.init2=initialized first ; | ||||
| model.manage.createtrainjob_tip=Training task: you haven't created a training task, please create it first | model.manage.createtrainjob_tip=Training task: you haven't created a training task, please create it first | ||||
| model.manage.createtrainjob=Training task | |||||
| model.manage.createtrainjob=Training task. | |||||
| model.manage.delete=Delete Model | model.manage.delete=Delete Model | ||||
| model.manage.delete_confirm=Are you sure to delete this model? Once this model is deleted, it cannot be restored. | model.manage.delete_confirm=Are you sure to delete this model? Once this model is deleted, it cannot be restored. | ||||
| model.manage.select.trainjob=Select train task | model.manage.select.trainjob=Select train task | ||||
| @@ -1260,9 +1264,9 @@ model.manage.modellabel=Model label | |||||
| model.manage.modeldesc=Model description | model.manage.modeldesc=Model description | ||||
| model.manage.baseinfo=Base Information | model.manage.baseinfo=Base Information | ||||
| modelconvert.notcreate=No model conversion task has been created. | modelconvert.notcreate=No model conversion task has been created. | ||||
| modelconvert.importfirst1=Please import first | |||||
| modelconvert.importfirst2=download model | |||||
| modelconvert.importfirst3=, then converts it. | |||||
| modelconvert.importfirst1=Please import the | |||||
| modelconvert.importfirst2=model | |||||
| modelconvert.importfirst3=first, then converts it. | |||||
| modelconvert.download=Download | modelconvert.download=Download | ||||
| modelconvert.taskname=Task name | modelconvert.taskname=Task name | ||||
| modelconvert.modelname=Model name | modelconvert.modelname=Model name | ||||
| @@ -965,6 +965,7 @@ unfavorite=取消收藏 | |||||
| favorite=收藏 | favorite=收藏 | ||||
| disassociate=取消关联 | disassociate=取消关联 | ||||
| benchmark_dataset_tip=说明:先使用数据集功能上传模型,然后从数据集列表选模型。 | benchmark_dataset_tip=说明:先使用数据集功能上传模型,然后从数据集列表选模型。 | ||||
| file_deleted=文件已经被删除 | |||||
| [repo] | [repo] | ||||
| owner=拥有者 | owner=拥有者 | ||||
| @@ -1235,6 +1236,10 @@ repo_not_initialized = 代码版本:您还没有初始化代码仓库,请先 | |||||
| debug_task_running_limit = 运行时长:最长不超过4个小时,超过4个小时将自动停止; | debug_task_running_limit = 运行时长:最长不超过4个小时,超过4个小时将自动停止; | ||||
| dataset_desc = 数据集:云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源,调试使用的数据集也需要上传到对应的环境; | dataset_desc = 数据集:云脑1提供 CPU / GPU 资源,云脑2提供 Ascend NPU 资源,调试使用的数据集也需要上传到对应的环境; | ||||
| platform_instructions = 使用说明:可以参考启智AI协作平台<a href="https://git.openi.org.cn/zeizei/OpenI_Learning">小白训练营课程</a>。 | platform_instructions = 使用说明:可以参考启智AI协作平台<a href="https://git.openi.org.cn/zeizei/OpenI_Learning">小白训练营课程</a>。 | ||||
| platform_instructions1 = 使用说明:可以参考启智AI协作平台 | |||||
| platform_instructions2 = 小白训练营课程 | |||||
| platform_instructions3 = 。 | |||||
| model_not_exist = 模型文件:您还没有模型文件,请先通过<a href="%s/modelarts/train-job">训练任务</a>产生并 <a href="%s/modelmanage/show_model">导出模型</a> ; | model_not_exist = 模型文件:您还没有模型文件,请先通过<a href="%s/modelarts/train-job">训练任务</a>产生并 <a href="%s/modelmanage/show_model">导出模型</a> ; | ||||
| benchmark_leaderboards = 基准测试排行榜 | benchmark_leaderboards = 基准测试排行榜 | ||||
| @@ -1261,7 +1266,7 @@ model.manage.notcreatemodel=未创建过模型 | |||||
| model.manage.init1=代码版本:您还没有初始化代码仓库,请先 | model.manage.init1=代码版本:您还没有初始化代码仓库,请先 | ||||
| model.manage.init2=创建代码版本; | model.manage.init2=创建代码版本; | ||||
| model.manage.createtrainjob_tip=训练任务:您还没创建过训练任务,请先创建 | model.manage.createtrainjob_tip=训练任务:您还没创建过训练任务,请先创建 | ||||
| model.manage.createtrainjob=训练任务 | |||||
| model.manage.createtrainjob=训练任务。 | |||||
| model.manage.delete=删除模型 | model.manage.delete=删除模型 | ||||
| model.manage.delete_confirm=你确认删除该模型么?此模型一旦删除不可恢复。 | model.manage.delete_confirm=你确认删除该模型么?此模型一旦删除不可恢复。 | ||||
| model.manage.select.trainjob=选择训练任务 | model.manage.select.trainjob=选择训练任务 | ||||
| @@ -1274,7 +1279,7 @@ model.manage.modeldesc=模型描述 | |||||
| model.manage.baseinfo=基本信息 | model.manage.baseinfo=基本信息 | ||||
| modelconvert.notcreate=未创建过模型转换任务 | modelconvert.notcreate=未创建过模型转换任务 | ||||
| modelconvert.importfirst1=请您先导入 | modelconvert.importfirst1=请您先导入 | ||||
| modelconvert.importfirst2=模型下载 | |||||
| modelconvert.importfirst2=模型 | |||||
| modelconvert.importfirst3=,然后再对其进行转换。 | modelconvert.importfirst3=,然后再对其进行转换。 | ||||
| modelconvert.download=下载 | modelconvert.download=下载 | ||||
| modelconvert.taskname=任务名称 | modelconvert.taskname=任务名称 | ||||
| @@ -928,7 +928,7 @@ func cloudBrainShow(ctx *context.Context, tpName base.TplName, jobType models.Jo | |||||
| } | } | ||||
| } | } | ||||
| ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, false) | |||||
| ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, task.DatasetName, false) | |||||
| ctx.Data["task"] = task | ctx.Data["task"] = task | ||||
| labelName := strings.Fields(task.LabelName) | labelName := strings.Fields(task.LabelName) | ||||
| ctx.Data["LabelName"] = labelName | ctx.Data["LabelName"] = labelName | ||||
| @@ -713,7 +713,7 @@ func GrampusTrainJobShow(ctx *context.Context) { | |||||
| taskList := make([]*models.Cloudbrain, 0) | taskList := make([]*models.Cloudbrain, 0) | ||||
| taskList = append(taskList, task) | taskList = append(taskList, task) | ||||
| ctx.Data["version_list_task"] = taskList | ctx.Data["version_list_task"] = taskList | ||||
| ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, false) | |||||
| ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, task.DatasetName, false) | |||||
| ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) | ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) | ||||
| ctx.Data["displayJobName"] = task.DisplayJobName | ctx.Data["displayJobName"] = task.DisplayJobName | ||||
| @@ -285,7 +285,7 @@ func NotebookShow(ctx *context.Context) { | |||||
| datasetDownload := make([]models.DatasetDownload, 0) | datasetDownload := make([]models.DatasetDownload, 0) | ||||
| if ctx.IsSigned { | if ctx.IsSigned { | ||||
| if task.Uuid != "" && task.UserID == ctx.User.ID { | if task.Uuid != "" && task.UserID == ctx.User.ID { | ||||
| datasetDownload = GetCloudBrainDataSetInfo(task.Uuid, true) | |||||
| datasetDownload = GetCloudBrainDataSetInfo(task.Uuid, task.DatasetName, true) | |||||
| } | } | ||||
| } | } | ||||
| user, err := models.GetUserByID(task.UserID) | user, err := models.GetUserByID(task.UserID) | ||||
| @@ -331,34 +331,43 @@ func NotebookShow(ctx *context.Context) { | |||||
| ctx.HTML(200, tplModelArtsNotebookShow) | ctx.HTML(200, tplModelArtsNotebookShow) | ||||
| } | } | ||||
| func GetCloudBrainDataSetInfo(uuid string, isNeedDown bool) []models.DatasetDownload { | |||||
| func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool) []models.DatasetDownload { | |||||
| datasetDownload := make([]models.DatasetDownload, 0) | datasetDownload := make([]models.DatasetDownload, 0) | ||||
| uuidList := strings.Split(uuid, ";") | uuidList := strings.Split(uuid, ";") | ||||
| for _, uuidStr := range uuidList { | |||||
| datasetnameList := strings.Split(datasetname, ";") | |||||
| for i, uuidStr := range uuidList { | |||||
| name := "" | |||||
| link := "" | |||||
| isDelete := false | |||||
| attachment, err := models.GetAttachmentByUUID(uuidStr) | attachment, err := models.GetAttachmentByUUID(uuidStr) | ||||
| if err != nil { | if err != nil { | ||||
| log.Error("GetAttachmentByUUID failed:%v", err.Error()) | log.Error("GetAttachmentByUUID failed:%v", err.Error()) | ||||
| return datasetDownload | |||||
| } | |||||
| dataset, err := models.GetDatasetByID(attachment.DatasetID) | |||||
| if err != nil { | |||||
| log.Error("GetDatasetByID failed:%v", err.Error()) | |||||
| return datasetDownload | |||||
| } | |||||
| repo, err := models.GetRepositoryByID(dataset.RepoID) | |||||
| if err != nil { | |||||
| log.Error("GetRepositoryByID failed:%v", err.Error()) | |||||
| return datasetDownload | |||||
| name = datasetnameList[i] | |||||
| isDelete = true | |||||
| } else { | |||||
| name = attachment.Name | |||||
| dataset, err := models.GetDatasetByID(attachment.DatasetID) | |||||
| if err != nil { | |||||
| log.Error("GetDatasetByID failed:%v", err.Error()) | |||||
| } else { | |||||
| repo, err := models.GetRepositoryByID(dataset.RepoID) | |||||
| if err != nil { | |||||
| log.Error("GetRepositoryByID failed:%v", err.Error()) | |||||
| } else { | |||||
| link = repo.Link() + "/datasets" | |||||
| } | |||||
| } | |||||
| } | } | ||||
| url := "" | url := "" | ||||
| if isNeedDown { | if isNeedDown { | ||||
| url = attachment.S3DownloadURL() | url = attachment.S3DownloadURL() | ||||
| } | } | ||||
| datasetDownload = append(datasetDownload, models.DatasetDownload{ | datasetDownload = append(datasetDownload, models.DatasetDownload{ | ||||
| DatasetName: attachment.Name, | |||||
| DatasetName: name, | |||||
| DatasetDownloadLink: url, | DatasetDownloadLink: url, | ||||
| RepositoryLink: repo.Link() + "/datasets", | |||||
| RepositoryLink: link, | |||||
| IsDelete: isDelete, | |||||
| }) | }) | ||||
| } | } | ||||
| return datasetDownload | return datasetDownload | ||||
| @@ -1810,7 +1819,7 @@ func TrainJobShow(ctx *context.Context) { | |||||
| } else { | } else { | ||||
| VersionListTasks[i].Parameters = "" | VersionListTasks[i].Parameters = "" | ||||
| } | } | ||||
| datasetList = append(datasetList, GetCloudBrainDataSetInfo(task.Uuid, false)) | |||||
| datasetList = append(datasetList, GetCloudBrainDataSetInfo(task.Uuid, task.DatasetName, false)) | |||||
| VersionListTasks[i].CanDel = cloudbrain.CanDeleteJob(ctx, &task.Cloudbrain) | VersionListTasks[i].CanDel = cloudbrain.CanDeleteJob(ctx, &task.Cloudbrain) | ||||
| VersionListTasks[i].CanModify = cloudbrain.CanModifyJob(ctx, &task.Cloudbrain) | VersionListTasks[i].CanModify = cloudbrain.CanModifyJob(ctx, &task.Cloudbrain) | ||||
| } | } | ||||
| @@ -2526,7 +2535,7 @@ func InferenceJobShow(ctx *context.Context) { | |||||
| ctx.Data["displayJobName"] = task.DisplayJobName | ctx.Data["displayJobName"] = task.DisplayJobName | ||||
| ctx.Data["task"] = task | ctx.Data["task"] = task | ||||
| ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) | ctx.Data["canDownload"] = cloudbrain.CanModifyJob(ctx, task) | ||||
| ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, false) | |||||
| ctx.Data["datasetDownload"] = GetCloudBrainDataSetInfo(task.Uuid, task.DatasetName, false) | |||||
| tempUids := []int64{} | tempUids := []int64{} | ||||
| tempUids = append(tempUids, task.UserID) | tempUids = append(tempUids, task.UserID) | ||||
| JobCreater, err := models.GetUserNamesByIDs(tempUids) | JobCreater, err := models.GetUserNamesByIDs(tempUids) | ||||
| @@ -500,7 +500,13 @@ | |||||
| <tbody> | <tbody> | ||||
| {{range $m ,$n := $.datasetDownload}} | {{range $m ,$n := $.datasetDownload}} | ||||
| <tr> | <tr> | ||||
| <td style="word-wrap: break-word;word-break: break-all;"><a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a></td> | |||||
| <td style="word-wrap: break-word;word-break: break-all;"> | |||||
| {{if eq .IsDelete true}} | |||||
| {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) | |||||
| {{else}} | |||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{end}} | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| {{end}} | {{end}} | ||||
| @@ -498,7 +498,13 @@ | |||||
| <tbody> | <tbody> | ||||
| {{range $m ,$n := $.datasetDownload}} | {{range $m ,$n := $.datasetDownload}} | ||||
| <tr> | <tr> | ||||
| <td style="word-wrap: break-word;word-break: break-all;"><a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a></td> | |||||
| <td style="word-wrap: break-word;word-break: break-all;"> | |||||
| {{if eq .IsDelete true}} | |||||
| {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) | |||||
| {{else}} | |||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{end}} | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| {{end}} | {{end}} | ||||
| @@ -464,7 +464,13 @@ | |||||
| <tbody> | <tbody> | ||||
| {{range $m ,$n := $.datasetDownload}} | {{range $m ,$n := $.datasetDownload}} | ||||
| <tr> | <tr> | ||||
| <td style="word-wrap: break-word;word-break: break-all;"><a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a></td> | |||||
| <td style="word-wrap: break-word;word-break: break-all;"> | |||||
| {{if eq .IsDelete true}} | |||||
| {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) | |||||
| {{else}} | |||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{end}} | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| {{end}} | {{end}} | ||||
| @@ -419,7 +419,12 @@ | |||||
| <td class="ti-text-form-content"> | <td class="ti-text-form-content"> | ||||
| <div class="text-span text-span-w"> | <div class="text-span text-span-w"> | ||||
| {{range $m ,$n := $.datasetDownload}} | {{range $m ,$n := $.datasetDownload}} | ||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{if eq .IsDelete true}} | |||||
| {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) | |||||
| {{else}} | |||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{end}} | |||||
| {{end}} | {{end}} | ||||
| </div> | </div> | ||||
| </td> | </td> | ||||
| @@ -441,7 +441,14 @@ td, th { | |||||
| <tbody> | <tbody> | ||||
| {{range $m ,$n := $.datasetDownload}} | {{range $m ,$n := $.datasetDownload}} | ||||
| <tr> | <tr> | ||||
| <td style="word-wrap: break-word;word-break: break-all;"><a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a></td> | |||||
| <td style="word-wrap: break-word;word-break: break-all;"> | |||||
| {{if eq .IsDelete true}} | |||||
| {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) | |||||
| {{else}} | |||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{end}} | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| {{end}} | {{end}} | ||||
| @@ -439,7 +439,14 @@ | |||||
| <tbody> | <tbody> | ||||
| {{range $.datasetDownload}} | {{range $.datasetDownload}} | ||||
| <tr> | <tr> | ||||
| <td style="word-wrap: break-word;word-break: break-all;"><a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a></td> | |||||
| <td style="word-wrap: break-word;word-break: break-all;"> | |||||
| {{if eq .IsDelete true}} | |||||
| {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) | |||||
| {{else}} | |||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{end}} | |||||
| </td> | |||||
| <td style="word-wrap: break-word;word-break: break-all;">{{.DatasetDownloadLink}}</td> | <td style="word-wrap: break-word;word-break: break-all;">{{.DatasetDownloadLink}}</td> | ||||
| <td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn-dataset" data-original="{{$.i18n.Tr "repo.copy_link"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-text="{{.DatasetDownloadLink}}">{{$.i18n.Tr "dataset.download_copy"}}</a></td> | <td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn-dataset" data-original="{{$.i18n.Tr "repo.copy_link"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-text="{{.DatasetDownloadLink}}">{{$.i18n.Tr "dataset.download_copy"}}</a></td> | ||||
| </tr> | </tr> | ||||
| @@ -489,7 +489,13 @@ | |||||
| {{if eq $k $m}} | {{if eq $k $m}} | ||||
| {{range $f ,$g := $n}} | {{range $f ,$g := $n}} | ||||
| <tr> | <tr> | ||||
| <td style="word-wrap: break-word;word-break: break-all;"><a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a></td> | |||||
| <td style="word-wrap: break-word;word-break: break-all;"> | |||||
| {{if eq .IsDelete true}} | |||||
| {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) | |||||
| {{else}} | |||||
| <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a> | |||||
| {{end}} | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| {{end}} | {{end}} | ||||
| {{end}} | {{end}} | ||||
| @@ -50,9 +50,9 @@ | |||||
| <div class="bgtask-content-header">{{$.i18n.Tr "repo.modelconvert.notcreate"}}</div> | <div class="bgtask-content-header">{{$.i18n.Tr "repo.modelconvert.notcreate"}}</div> | ||||
| <div class="bgtask-content"> | <div class="bgtask-content"> | ||||
| {{if eq .MODEL_COUNT 0}} | {{if eq .MODEL_COUNT 0}} | ||||
| <div class="bgtask-content-txt">{{$.i18n.Tr "repo.modelconvert.importfirst1"}}<a href="{{.RepoLink}}/modelmanage/show_model">{{$.i18n.Tr "repo.modelconvert.importfirst2"}}</a>{{$.i18n.Tr "repo.modelconvert.importfirst3"}}</div> | |||||
| <div class="bgtask-content-txt">{{$.i18n.Tr "repo.modelconvert.importfirst1"}}<a href="{{.RepoLink}}/modelmanage/show_model"> {{$.i18n.Tr "repo.modelconvert.importfirst2"}} </a>{{$.i18n.Tr "repo.modelconvert.importfirst3"}}</div> | |||||
| {{end}} | {{end}} | ||||
| <div class="bgtask-content-txt">{{$.i18n.Tr "repo.platform_instructions"}}</div> | |||||
| <div class="bgtask-content-txt">{{$.i18n.Tr "repo.platform_instructions1"}}<a href="https://git.openi.org.cn/zeizei/OpenI_Learning"> {{$.i18n.Tr "repo.platform_instructions2"}} </a>{{$.i18n.Tr "repo.platform_instructions3"}}</div> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -71,9 +71,9 @@ | |||||
| {{end}} | {{end}} | ||||
| {{if eq $.TRAIN_COUNT 0}} | {{if eq $.TRAIN_COUNT 0}} | ||||
| <div class="bgtask-content-txt">{{$.i18n.Tr "repo.model.manage.createtrainjob_tip"}}<a | <div class="bgtask-content-txt">{{$.i18n.Tr "repo.model.manage.createtrainjob_tip"}}<a | ||||
| href="{{.RepoLink}}/modelarts/train-job">{{$.i18n.Tr "repo.model.manage.createtrainjob"}}</a>。</div> | |||||
| href="{{.RepoLink}}/modelarts/train-job"> {{$.i18n.Tr "repo.model.manage.createtrainjob"}}</a></div> | |||||
| {{end}} | {{end}} | ||||
| <div class="bgtask-content-txt">{{$.i18n.Tr "repo.platform_instructions"}}</a></div> | |||||
| <div class="bgtask-content-txt">{{$.i18n.Tr "repo.platform_instructions1"}}<a href="https://git.openi.org.cn/zeizei/OpenI_Learning"> {{$.i18n.Tr "repo.platform_instructions2"}} </a>{{$.i18n.Tr "repo.platform_instructions3"}}</div> | |||||
| </div> | </div> | ||||
| <div style="display: none;"> | <div style="display: none;"> | ||||
| @@ -330,7 +330,7 @@ | |||||
| .modal({ | .modal({ | ||||
| centered: false, | centered: false, | ||||
| onShow: function () { | onShow: function () { | ||||
| $('#model_header').text("导入新模型") | |||||
| $('#model_header').text({{.i18n.Tr "repo.model.manage.import_new_model"}}) | |||||
| $('input[name="Version"]').addClass('model_disabled') | $('input[name="Version"]').addClass('model_disabled') | ||||
| $('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" }) | $('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" }) | ||||
| $("#job-name").empty() | $("#job-name").empty() | ||||
| @@ -197,11 +197,12 @@ export default { | |||||
| this.getModelList() | this.getModelList() | ||||
| }, | }, | ||||
| showcreateVue(name,version,label){ | showcreateVue(name,version,label){ | ||||
| let title= this.i18n.model_create_version_title; | |||||
| $('.ui.modal.second') | $('.ui.modal.second') | ||||
| .modal({ | .modal({ | ||||
| centered: false, | centered: false, | ||||
| onShow:function(){ | onShow:function(){ | ||||
| $('#model_header').text("创建模型新版本") | |||||
| $('#model_header').text(title) | |||||
| $('input[name="Name"]').addClass('model_disabled') | $('input[name="Name"]').addClass('model_disabled') | ||||
| $('input[name="Name"]').attr('readonly','readonly') | $('input[name="Name"]').attr('readonly','readonly') | ||||
| $('input[name="modelSelectedFile"]').attr('readonly','readonly') | $('input[name="modelSelectedFile"]').attr('readonly','readonly') | ||||
| @@ -95,6 +95,8 @@ export const i18nVue = { | |||||
| model_create_new_ver: "创建新版本", | model_create_new_ver: "创建新版本", | ||||
| model_download: "下载", | model_download: "下载", | ||||
| model_delete: "删除", | model_delete: "删除", | ||||
| model_create_title: "导入新模型", | |||||
| model_create_version_title: "创建模型新版本", | |||||
| }, | }, | ||||
| US: { | US: { | ||||
| computer_vision: "computer vision", | computer_vision: "computer vision", | ||||
| @@ -196,5 +198,7 @@ export const i18nVue = { | |||||
| model_create_new_ver: "New Version", | model_create_new_ver: "New Version", | ||||
| model_download: "Download", | model_download: "Download", | ||||
| model_delete: "Delete", | model_delete: "Delete", | ||||
| model_create_title: "Import new model", | |||||
| model_create_version_title: "Create a new version of the model", | |||||
| }, | }, | ||||
| }; | }; | ||||