Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1573,14 +1573,16 @@
"performanceTest": {
"title": "Performance Tests",
"description": "Run performance tests against your ComfyUI builds.",
"selectInstance": "1. Select a build",
"workspaceLabel": "Workspace",
"selectInstance": "Build",
"instanceLabel": "Build",
"selectInstancePlaceholder": "Select a build",
"chooseWorkflow": "2. Choose a workflow",
"chooseWorkflow": "Workflow",
"chooseExampleWorkflow": "Choose an example workflow",
"loadingExampleWorkflows": "Loading example workflows...",
"orImportApiWorkflow": "or import an API workflow",
"importApiWorkflow": "Import API workflow",
"orDropJson": "or drop the .json",
"exampleTag": "Example",
"apiTag": "API",
"exampleWorkflowPickerTitle": "Choose an example workflow",
"exampleWorkflowPickerDescription": "Missing models will be downloaded automatically.",
"useExampleWorkflow": "Use workflow",
Expand All @@ -1592,7 +1594,6 @@
"exampleModelsFailed": "Could not download every model required by this workflow.",
"exampleModelsNoSpace": "There is not enough disk space for this workflow's models.",
"cancelExampleDownload": "Cancel download",
"dropWorkflowHint": "Drop a workflow .json file in API format here, or click to browse",
"importingWorkflow": "Importing workflow...",
"preparingExampleWorkflow": "Preparing workflow and downloading required models...",
"importFailed": "Could not import the workflow.",
Expand All @@ -1602,14 +1603,14 @@
"stop": "Stop",
"stopping": "Stopping...",
"stopFailed": "Could not stop the build.",
"measurementSettings": "3. Set measurement settings",
"measurementSettings": "Runs",
"warmupRuns": "Warm-up runs",
"warmupRunsHint": "Runs executed first to load models and warm up caches. They are not included in the results.",
"measuredRuns": "Measured runs",
"measuredRunsHint": "Runs timed after the warm-up runs. Their durations are used to calculate the results.",
"logsPlaceholder": "Build logs will appear here.",
"results": "Results",
"resultsPlaceholder": "Performance test results will appear here.",
"resultsPlaceholder": "Choose a workflow and press Run. Results stay here until the next run.",
"workflowFileName": "Workflow file",
"fastestRun": "Fastest run",
"slowestRun": "Slowest run",
Expand All @@ -1618,7 +1619,6 @@
"measuredRunCount": "Measured runs",
"failedRunCount": "Failed runs",
"runProgress": "Progress",
"runProgressCount": "{completed} of {total} runs completed",
"runDurationChart": "Run duration aggregates",
"device": "Compute device",
"vram": "VRAM",
Expand All @@ -1639,7 +1639,17 @@
"launchFailed": "Failed to start the build.",
"submittingRuns": "Submitting {warmupCount} warm-up runs and {count} measured runs...",
"completedRuns": "Finished {count} measured runs ({failed} failed). Final response saved to {path}",
"submitFailed": "Failed to submit the performance test workflow."
"submitFailed": "Failed to submit the performance test workflow.",
"chooseWorkflowPlaceholder": "Choose a workflow",
"resultContextOn": "on",
"runNumber": "Run {current} of {total}",
"resultsEmptyTitle": "No results yet",
"medianSummary": "Median run · {count} measured · {failed} failed",
"legendMedian": "Median",
"legendAverage": "Average",
"legendRange": "fastest to slowest",
"runPhaseWarmup": "warm-up run",
"runPhaseMeasured": "measured run {current} of {total}"
},
"benchmarks": {
"title": "Benchmarks",
Expand Down
28 changes: 19 additions & 9 deletions locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1573,14 +1573,16 @@
"performanceTest": {
"title": "性能测试",
"description": "针对您的 ComfyUI 构建运行性能测量。",
"selectInstance": "1. 选择构建",
"workspaceLabel": "工作区",
"selectInstance": "构建",
"instanceLabel": "构建",
"selectInstancePlaceholder": "选择构建",
"chooseWorkflow": "2. 选择工作流",
"chooseWorkflow": "工作流",
"chooseExampleWorkflow": "选择示例工作流",
"loadingExampleWorkflows": "正在加载示例工作流...",
"orImportApiWorkflow": "或导入 API 工作流",
"importApiWorkflow": "导入 API 工作流",
"orDropJson": "或拖入 .json 文件",
"exampleTag": "示例",
"apiTag": "API",
"exampleWorkflowPickerTitle": "选择示例工作流",
"exampleWorkflowPickerDescription": "缺少的模型将自动下载。",
"useExampleWorkflow": "使用工作流",
Expand All @@ -1592,7 +1594,6 @@
"exampleModelsFailed": "无法下载此工作流所需的全部模型。",
"exampleModelsNoSpace": "磁盘空间不足,无法下载此工作流的模型。",
"cancelExampleDownload": "取消下载",
"dropWorkflowHint": "将 API 格式的工作流 .json 文件拖放到此处,或点击浏览",
"importingWorkflow": "正在导入工作流...",
"preparingExampleWorkflow": "正在准备工作流并下载所需模型...",
"importFailed": "无法导入工作流。",
Expand All @@ -1602,14 +1603,14 @@
"stop": "停止",
"stopping": "正在停止...",
"stopFailed": "无法停止构建。",
"measurementSettings": "3. 设置测量参数",
"measurementSettings": "运行次数",
"warmupRuns": "预热运行次数",
"warmupRunsHint": "预先执行的运行,用于加载模型并预热缓存。这些运行不计入结果。",
"measuredRuns": "测量运行次数",
"measuredRunsHint": "在预热运行之后计时的运行。其耗时将用于计算结果。",
"logsPlaceholder": "构建日志将显示在此处。",
"results": "结果",
"resultsPlaceholder": "性能测试结果将显示在此处。",
"resultsPlaceholder": "选择工作流并点击运行。结果会保留到下一次运行。",
"workflowFileName": "工作流文件",
"fastestRun": "最快运行",
"slowestRun": "最慢运行",
Expand All @@ -1618,7 +1619,6 @@
"measuredRunCount": "测量运行数",
"failedRunCount": "失败运行数",
"runProgress": "进度",
"runProgressCount": "已完成 {completed}/{total} 次运行",
"runDurationChart": "运行时长汇总",
"device": "计算设备",
"vram": "显存",
Expand All @@ -1639,7 +1639,17 @@
"launchFailed": "无法启动构建。",
"submittingRuns": "正在提交 {warmupCount} 次预热运行和 {count} 次测量运行...",
"completedRuns": "已完成 {count} 次测量运行({failed} 次失败)。最终响应已保存到 {path}",
"submitFailed": "无法提交基准工作流。"
"submitFailed": "无法提交基准工作流。",
"chooseWorkflowPlaceholder": "选择工作流",
"resultContextOn": "于",
"runNumber": "第 {current} / {total} 次运行",
"resultsEmptyTitle": "暂无结果",
"medianSummary": "中位运行 · {count} 次测量 · {failed} 次失败",
"legendMedian": "中位数",
"legendAverage": "平均值",
"legendRange": "最快到最慢",
"runPhaseWarmup": "预热运行",
"runPhaseMeasured": "第 {current} / {total} 次测量运行"
},
"benchmarks": {
"title": "性能比较",
Expand Down
19 changes: 14 additions & 5 deletions src/renderer/src/components/BrandedPageHeader.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
<script setup lang="ts">
defineProps<{
title: string
description: string
description?: string
}>()
</script>

<template>
<header
class="branded-page-header box-border flex w-full items-center gap-7 @max-[700px]:flex-col @max-[700px]:items-start @max-[700px]:gap-2"
class="branded-page-header box-border flex w-full items-end justify-between gap-6 @max-[700px]:flex-col @max-[700px]:items-start @max-[700px]:gap-3"
>
<div>
<h1 class="m-0 mb-1 text-[24px] leading-[1.2] font-semibold text-neutral-100">{{ title }}</h1>
<p class="branded-page-header__description m-0 text-[14px] text-text-muted">
<div class="min-w-0">
<h1 class="m-0 font-display text-display font-semibold text-foreground">{{ title }}</h1>
<p
v-if="description"
class="branded-page-header__description m-0 mt-1 text-[14px] text-text-muted"
>
{{ description }}
</p>
</div>
<div
v-if="$slots.actions"
class="branded-page-header__actions flex flex-none items-center gap-2"
>
<slot name="actions" />
</div>
</header>
</template>
Loading
Loading