Skip to content
Merged
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
39 changes: 23 additions & 16 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1545,15 +1545,15 @@
},
"performanceTest": {
"title": "Performance Tests",
"description": "Run performance tests against your ComfyUI builds.",
"selectInstance": "1. Select a build",
"workspaceLabel": "Workspace",
"instanceLabel": "Build",
"selectInstance": "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 @@ -1565,7 +1565,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 @@ -1575,24 +1574,20 @@
"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.",
"workflowFileName": "Workflow file",
"resultsPlaceholder": "Choose a workflow and press Run. Results stay here until the next run.",
"fastestRun": "Fastest run",
"slowestRun": "Slowest run",
"averageRunDuration": "Average run",
"medianRunDuration": "Median run",
"measuredRunCount": "Measured runs",
"failedRunCount": "Failed runs",
"runProgress": "Progress",
"runProgressCount": "{completed} of {total} runs completed",
"runDurationChart": "Run duration aggregates",
"runDurationChart": "Run duration",
"device": "Compute device",
"vram": "VRAM",
"ram": "RAM",
Expand All @@ -1608,11 +1603,23 @@
"exportResultsImage": "Export results",
"exportingImage": "Exporting image...",
"exportImageFailed": "Could not export the results image.",
"running": "Running...",
"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",
"buildTriggerLabel": "Build: {build}",
"workflowTriggerLabel": "Workflow: {workflow}",
"resultContext": "{workflow} on {build}",
"startingBuild": "Starting the build...",
"runFailedTitle": "The test didn't finish",
"runFailedHint": "See the logs below for details.",
"runNumber": "Run {current} of {total}",
"resultsEmptyTitle": "No results yet",
"medianSummary": "Median run · {count} measured · {failed} failed",
"runCounts": "{count} measured · {failed} failed",
"runPhaseWarmup": "warm-up run",
"runPhaseMeasured": "measured run {current} of {total}"
},
"benchmarks": {
"title": "Benchmarks",
Expand Down
39 changes: 23 additions & 16 deletions locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1545,15 +1545,15 @@
},
"performanceTest": {
"title": "性能测试",
"description": "针对您的 ComfyUI 构建运行性能测量。",
"selectInstance": "1. 选择构建",
"workspaceLabel": "工作区",
"instanceLabel": "构建",
"selectInstance": "构建",
"selectInstancePlaceholder": "选择构建",
"chooseWorkflow": "2. 选择工作流",
"chooseWorkflow": "工作流",
"chooseExampleWorkflow": "选择示例工作流",
"loadingExampleWorkflows": "正在加载示例工作流...",
"orImportApiWorkflow": "或导入 API 工作流",
"importApiWorkflow": "导入 API 工作流",
"orDropJson": "或拖入 .json 文件",
"exampleTag": "示例",
"apiTag": "API",
"exampleWorkflowPickerTitle": "选择示例工作流",
"exampleWorkflowPickerDescription": "缺少的模型将自动下载。",
"useExampleWorkflow": "使用工作流",
Expand All @@ -1565,7 +1565,6 @@
"exampleModelsFailed": "无法下载此工作流所需的全部模型。",
"exampleModelsNoSpace": "磁盘空间不足,无法下载此工作流的模型。",
"cancelExampleDownload": "取消下载",
"dropWorkflowHint": "将 API 格式的工作流 .json 文件拖放到此处,或点击浏览",
"importingWorkflow": "正在导入工作流...",
"preparingExampleWorkflow": "正在准备工作流并下载所需模型...",
"importFailed": "无法导入工作流。",
Expand All @@ -1575,24 +1574,20 @@
"stop": "停止",
"stopping": "正在停止...",
"stopFailed": "无法停止构建。",
"measurementSettings": "3. 设置测量参数",
"measurementSettings": "运行次数",
"warmupRuns": "预热运行次数",
"warmupRunsHint": "预先执行的运行,用于加载模型并预热缓存。这些运行不计入结果。",
"measuredRuns": "测量运行次数",
"measuredRunsHint": "在预热运行之后计时的运行。其耗时将用于计算结果。",
"logsPlaceholder": "构建日志将显示在此处。",
"results": "结果",
"resultsPlaceholder": "性能测试结果将显示在此处。",
"workflowFileName": "工作流文件",
"resultsPlaceholder": "选择工作流并点击运行。结果会保留到下一次运行。",
"fastestRun": "最快运行",
"slowestRun": "最慢运行",
"averageRunDuration": "平均运行时长",
"medianRunDuration": "运行时长中位数",
"measuredRunCount": "测量运行数",
"failedRunCount": "失败运行数",
"runProgress": "进度",
"runProgressCount": "已完成 {completed}/{total} 次运行",
"runDurationChart": "运行时长汇总",
"runDurationChart": "运行时长",
"device": "计算设备",
"vram": "显存",
"ram": "内存",
Expand All @@ -1608,11 +1603,23 @@
"exportResultsImage": "导出结果",
"exportingImage": "正在导出图像...",
"exportImageFailed": "无法导出结果图像。",
"running": "正在运行...",
"launchFailed": "无法启动构建。",
"submittingRuns": "正在提交 {warmupCount} 次预热运行和 {count} 次测量运行...",
"completedRuns": "已完成 {count} 次测量运行({failed} 次失败)。最终响应已保存到 {path}",
"submitFailed": "无法提交基准工作流。"
"submitFailed": "无法提交基准工作流。",
"chooseWorkflowPlaceholder": "选择工作流",
"buildTriggerLabel": "构建:{build}",
"workflowTriggerLabel": "工作流:{workflow}",
"resultContext": "在 {build} 上运行 {workflow}",
"startingBuild": "正在启动构建...",
"runFailedTitle": "测试未完成",
"runFailedHint": "详情请查看下方日志。",
"runNumber": "第 {current} / {total} 次运行",
"resultsEmptyTitle": "暂无结果",
"medianSummary": "中位运行 · {count} 次测量 · {failed} 次失败",
"runCounts": "{count} 次测量 · {failed} 次失败",
"runPhaseWarmup": "预热运行",
"runPhaseMeasured": "第 {current} / {total} 次测量运行"
},
"benchmarks": {
"title": "性能比较",
Expand Down
15 changes: 10 additions & 5 deletions src/renderer/src/components/BrandedPageHeader.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<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 text-[22px]/[1.4] font-semibold tracking-[-0.01em] 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>
Expand Down
27 changes: 27 additions & 0 deletions src/renderer/src/components/ui/FilterButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<script setup lang="ts">
import Button from '@comfyorg/design-system/button/Button'
import { ChevronDown } from 'lucide-vue-next'

defineProps<{
label: string
value?: string | null
placeholder: string
}>()
</script>

<template>
<Button
class="filter-button min-w-0 gap-1.5 px-3 text-[13px]/5"
variant="secondary"
size="md"
type="button"
>
<span class="filter-button__label shrink-0 text-subtle-foreground">{{ label }}</span>
<slot>
<span class="filter-button__value truncate" :class="{ 'text-muted-foreground': !value }">
{{ value || placeholder }}
</span>
</slot>
<ChevronDown :size="14" class="ml-auto shrink-0" aria-hidden="true" />
</Button>
</template>
Loading
Loading