在 Olares FlowStudio 中生成与编辑图片、制作视频:Qwen-Image 2.1 与 FastVideo/MiniMax H3 工作流实战
在 Olares FlowStudio 中生成与编辑图片、制作视频:Qwen-Image 2.1 与 FastVideo/MiniMax H3 工作流实战
FlowStudio 是 Olares 上一款以现成工作流(Workflow)驱动图片与视频生成的应用:选择一个工作流创建场景后,它会自动为你下载并初始化所需的模型与运行环境。本文以一张海岸汽车海报为主线,串联文生图、图片编辑、双图生视频、参考素材生视频四个场景,完整演示从安装应用到下载成品的每一步操作,并补充参数取值范围、显存注意事项与底层工作流执行机制,让你在 Olares OS 上可以直接复现整套创作流程。
教程概览:一条海岸海报主线贯穿四个场景
本教程以一张红色复古汽车海岸海报为贯穿案例,先后完成文生图、图片编辑、双图生成视频和参考素材生成视频四个任务。每一步的产物都会作为下一步的输入,形成一条完整的创作链路:
| 场景 | 工作流 | 生成内容 |
|---|---|---|
| 文生图 | Qwen-Image 2.1 NVFP4 · Text to Image | 一张以红色复古汽车为主体的海岸海报。 |
| 图片编辑 | Qwen-Image 2.1 NVFP4 · Image Edit | 将海报中的汽车漆面改为蓝色。 |
| 使用两张图片生成视频 | FastVideo FastH3: Image to Video | 以蓝车和红车海报分别作为起始与结束图片的视频。 |
| 使用参考素材生成视频 | MiniMax H3 NVFP4 · Reference to Audio-Video | 参考原始图片和已生成的视频,制作红车从相框驶到桌面上的视频。 |
这四个场景对应四套 FlowStudio 工作流。工作流名称中的 NVFP4 是 NVIDIA 的 4 位浮点量化格式,说明该模型以低显存占用的量化形态部署;FastVideo FastH3 与 MiniMax H3 则是视频生成侧的两类模型,前者擅长从首尾帧推断运动,后者擅长融合图片、视频、音频多种参考输入。在 FlowStudio 中,一个工作流就是一套 ComfyUI 流程,创建场景后由应用自动拉取模型并初始化运行环境,无需手工配置。
前提条件与显存注意事项
开始前请确认以下条件:
- Olares OS 1.12.7 或更高版本。
- 如果此前已安装过 FlowStudio,请先更新至最新版本。
:::warning 避免同时运行 FlowStudio 生成任务和 Qwen3.8-27B 对话 在 Lares 中使用 Qwen3.8-27B (llama.cpp) 时,请等待直接在 FlowStudio 中启动的图片或视频生成任务完成,再发送消息。同时运行两者可能导致显存冲突,使模型无法响应。 :::
这条警告同样适用于后续所有生成任务:图片与视频生成都会占用大量 GPU 显存,Olares One 等单卡设备上尤其需要注意任务排队,不要在生成过程中并行发起新的重负载任务。
安装 FlowStudio
- 打开 Market,搜索“FlowStudio”。
- 点击 Get,然后点击 Install,等待安装完成。
安装完成后,FlowStudio 即作为 Olares 的本地生成引擎接入系统。从源码结构看,它属于 Router 路由体系中"本地多模态"的一环:Router 将其视为一个普通 provider,四种创意模式(图片 image_generation、视频 video_generation、音乐 music_generation、3D model3d_generation)由它本地执行,相关说明可参见 cli/skills/olares-router/references/olares-router-local-multimodal.md。
上传要求
FlowStudio 场景中上传的素材文件统一要求:每个文件大小不能超过 64 MB。支持的素材格式如下:
| 素材类型 | 支持的格式 |
|---|---|
| 图片 | PNG、JPG、WEBP、GIF 和 BMP。HEIC 和 AVIF 图片会在上传时自动转换为 WebP。 |
| 视频 | MP4、WEBM、MOV、M4V、AVI 和 MKV。 |
| 音频 | MP3、WAV、FLAC、OGG、M4A 和 AAC。 |
注意两个细节:HEIC/AVIF 这类移动设备常见格式无需预先转码,上传时会被自动转为 WebP;而参考视频与参考音频在部分工作流中还有额外的时长限制(2–15 秒),这一点会在后文对应场景中说明。
场景一:根据文字生成图片
使用 Qwen-Image 2.1 NVFP4 · Text to Image 工作流,通过文字提示词生成图片。该工作流支持文字渲染、写实纹理、精细细节和透明背景输出。
准备场景
- 打开 FlowStudio,进入 Workflow Plaza,选择 Image 分类。
- 搜索
Qwen-Image 2.1,然后选择 Qwen-Image 2.1 NVFP4 · Text to Image。 - 查看 Pre-run checks(运行前检查)。显示 Checks passed 后,点击 Create scene 创建场景。
:::tip GPU 显存不足 如果检查提示 GPU 显存不足,请停止其他占用大量 GPU 资源的应用,或取消为其分配 GPU 资源,然后重新检查。 :::
- 右侧会打开 Initialization progress(初始化进度)面板,等待显示 Init finished。初始化过程会完成模型文件的下载与加载,首次创建场景耗时较长属正常现象。
配置并生成图片
- 打开 Create > Scenes,然后选择 Qwen-Image 2.1 NVFP4 · Text to Image。
- 输入提示词。以下示例生成一张红色复古汽车海岸海报,标题为“TIMELESS DRIVE”:
Create a cinematic automotive travel poster.
A cherry-red vintage two-door coupe is parked at a scenic coastal overlook, shown in full from a low front three-quarter angle, with its front pointing left. Position the car across the lower center of the frame.
Show finely detailed chrome trim, realistic tire tread, silver alloy wheels, subtle leather upholstery visible through the windows, and reflections of the sky and coastline in the glossy paint.
In the middle distance, a winding road follows rugged cliffs past a small seaside village with colorful facades. A weathered stone wall borders the overlook. In the foreground, textured pavement and a few tufts of coastal grass add detail. Beyond the cliffs, turquoise water reveals submerged rocks, with white surf along the shore.
Late-afternoon sunlight creates warm highlights on the car, cool shadows, and atmospheric depth in the distant coastline. Keep the car sharply defined and the background slightly softer, but recognizable.
Place the exact headline "TIMELESS DRIVE" in elegant, clearly legible ivory uppercase letters in the upper-left sky area. Keep the headline modest in size and clear of the car and village.
Photorealistic automotive photography with refined travel-poster typography. No people, brand logos, or additional text.
:::tip 生成透明背景的图片 要生成透明背景的图片,请在提示词中明确要求生成带有 alpha 通道和透明背景的 RGBA 图片。例如:
This is an RGBA image with transparency. The image has an alpha channel and a transparent background. A small red vintage toy car, shown in full from a front three-quarter angle, with glossy paint, silver wheels, and chrome trim. Center the car with space around it.
:::
- 点击 Parameters,配置图片参数:
| 参数 | 设置 |
|---|---|
| Aspect ratio | 本例选择 16:9。 |
| Megapixels | 从列表中选择输出分辨率。 |
| Batch | 本例选择 1(一次生成 1 张)。 |
- 点击 Generate,等待任务完成。
- 打开生成的图片,查看细节。
- 将鼠标悬停在生成的图片上,点击下载图标。下一部分会用到这张红车图片。
场景二:编辑图片
使用 Qwen-Image 2.1 NVFP4 · Image Edit 工作流,通过文字指令修改图片,同时保留主体特征和视觉细节。
准备场景
- 打开 FlowStudio,进入 Workflow Plaza,选择 Image 分类。
- 搜索
Qwen-Image 2.1,然后选择 Qwen-Image 2.1 NVFP4 · Image Edit。 - 查看 Pre-run checks,显示 Checks passed 后点击 Create scene。
- 右侧会打开 Initialization progress 面板,等待显示 Init finished。
一个值得注意的细节:Text to Image 和 Image Edit 使用相同的三个模型文件。因此模型库中已安装的模型会被直接复用,不会重复下载——如果你刚完成场景一的初始化,场景二通常可以很快完成准备。
配置并编辑图片
本例使用上一部分生成的红车海报,让模型只修改汽车的漆面颜色。
- 打开 Create > Scenes,然后选择 Qwen-Image 2.1 NVFP4 · Image Edit。
- 点击 Parameters,配置图片参数:
| 参数 | 设置 |
|---|---|
| Editable image | 点击 Choose reference,然后选择 Upload 上传要编辑的图片。本例使用上一部分生成的红车图片。 |
| Aspect ratio | 无需调整。无论此项如何设置,输出都会沿用输入图片的宽高比。 |
| Megapixels | 从列表中选择输出分辨率。 |
| Batch | 本例选择 1。 |
- 输入提示词。以下示例将汽车漆面从红色改为蓝色,并要求其余元素保持不变:
Change only the car's red paint to a rich metallic blue. Preserve the car's body shape, chrome trim, wheels, windows, and interior. Keep the coastal village, sea, mountains, road, camera angle, and composition unchanged. Preserve the exact text "TIMELESS DRIVE" in its original position and style. Maintain the warm late-afternoon lighting, with natural highlights and reflections on the new blue paint.
- 点击 Generate。任务完成后,打开编辑后的图片,检查所要求的修改是否已生效。
- 将鼠标悬停在编辑后的图片上,点击下载图标。下一部分会用到这张蓝车图片。
场景三:使用两张图片生成视频
使用 FastVideo FastH3: Image to Video 工作流,通过一张起始图片和一张可选的结束图片生成带声音的视频。
准备场景
- 打开 FlowStudio,进入 Workflow Plaza,选择 Video 分类。
- 搜索
FastVideo FastH3,然后选择 FastVideo FastH3: Image to Video。 - 查看 Pre-run checks,显示 Checks passed 后点击 Create scene。
- 右侧会打开 Initialization progress 面板,等待显示 Init finished。
配置并生成视频
本例使用蓝车图片作为起始图片,红车图片作为结束图片。提示词要求汽车向前行驶,同时漆面从蓝色变为红色。
- 打开 Create > Scenes,然后选择 FastVideo FastH3: Image to Video。
- 点击 Parameters,配置视频参数:
| 参数 | 设置 |
|---|---|
| First frame | 点击 Choose image 上传必需的起始图片。输出会沿用这张图片的宽高比。本例使用蓝车图片。 |
| Last frame | 可选上传结束图片。请使用与起始图片相同的宽高比,避免拉伸或裁切。本例使用红车图片。 |
| Megapixels | 本例选择 480p。可选分辨率为 360p、480p、540p 和 720p,默认为 480p。 |
| Duration | 本例设为 5 秒。支持 2–15 秒,默认为 5 秒。 |
- 输入提示词。如需指定声音,可以在提示词中描述对白、音效或音乐。以下示例要求汽车向前行驶,同时漆面从蓝色变为红色:
Create a continuous tracking shot, starting with the blue car in the first frame and ending with the red car in the last frame.
The car drives slowly forward along the coastal road, toward the left side of the scene. Its wheels rotate naturally. The camera tracks alongside it at the same speed, keeping the car at a consistent size and position in the frame while the road and coastal scenery move gently behind it.
As the car moves, its paint gradually changes from metallic blue to the red shown in the last frame. Complete the color transition by the end of the clip.
Preserve the car's body shape and details. Maintain warm late-afternoon lighting and realistic reflections. Keep the "TIMELESS DRIVE" headline fixed and legible as a screen overlay. Smooth motion, no cuts, no sudden acceleration, and no body deformation.
- 点击 Generate,等待任务完成。仓库中保留了本示例的生成结果视频 flowstudio-car-color-transition.mp4,可下载查看蓝车到红车的运动与漆面过渡效果。
- 下载生成的视频,作为下一部分的参考素材。
场景四:使用参考素材生成视频
使用 MiniMax H3 NVFP4 · Reference to Audio-Video 工作流,通过参考图片、视频或音频生成带声音的视频。这是四个场景中参数最丰富、能力最完整的一个。
准备场景和参考素材
- 打开 FlowStudio,进入 Workflow Plaza,选择 Video 分类。
- 搜索
MiniMax H3,然后选择 MiniMax H3 NVFP4 · Reference to Audio-Video。 - 查看 Pre-run checks,显示 Checks passed 后点击 Create scene。
- 右侧会打开 Initialization progress 面板,等待显示 Init finished。
配置参考素材
本例使用红车图片和此前生成的视频,制作一段汽车从相框驶到桌面上的广告短片。
- 打开 Create > Scenes,然后选择 MiniMax H3 NVFP4 · Reference to Audio-Video。
- 点击 Parameters,配置视频参数:
| 参数 | 设置 |
|---|---|
| Reference image group | 最多添加 3 张图片。图片会缩放至输出分辨率。本例点击添加按钮,选择原始红车图片。 |
| Reference videos | 可选添加一个 2–15 秒的视频,且必须包含画面。超出输出时长的部分会被截去,原声会自动用作音频参考。本例选择上一部分生成的视频。 |
| Reference audio | 可选添加一段 2–15 秒的音频。音频不会被截断;越长的音频占用越多 GPU 显存,处理也越慢。本例留空。 |
| Aspect ratio | 16:9 (Widescreen),与海报的横向构图一致。 |
| Megapixels | 选择 480p,这是参考素材生成视频的默认及推荐分辨率。 |
| Frame rate | 保持 24 fps。修改此值会改变播放速度和实际视频时长,而不会增加帧数。 |
| Duration | 本例设为 5 秒。支持 2–15 秒,默认为 5 秒。考虑 GPU 显存占用,请遵循以下建议:
|
| Quick Generation | 保持开启以快速预览。关闭后可获得更高质量,但生成速度较慢。 |
三个参考输入之间可以自由组合:参考图片组承担主体外观与构图锚定,参考视频贡献运动模式(并自动附带其原声),参考音频单独提供音轨。它们共同决定了最终视频的内容与风格。
输入提示词并生成视频
- 输入提示词。以下示例要求红车从相框中驶出,变成一辆迷你汽车:
Create a playful 5-second miniature car commercial.
Use the uploaded image as the artwork inside a framed picture and as the reference for the red vintage car. Use the uploaded video only for the car's driving motion and rotating wheels.
A framed picture of the red car on a coastal road stands upright on a wooden desk. The camera faces the frame at a slight angle.
The car comes to life inside the picture. It drives toward the viewer and physically crosses the frame's lower edge: first the front bumper, then the front wheels, followed by the body and rear wheels. As it emerges, it becomes a solid miniature car on the desk.
The camera gently pulls back to keep the entire car and frame visible. The car rolls forward and stops on the desk, fully outside the frame. The coastal landscape stays inside the picture, with no car remaining in it.
Keep the car red throughout. The frame stays upright and stationary. One continuous shot with warm afternoon lighting. No cuts, no duplicate cars, and no added text.
Add a tiny engine rev, a soft tap as the wheels touch the wooden desk, and a playful musical finish. No dialogue.
- 点击 Generate,等待任务完成。
- 播放视频查看效果。仓库中保留了本示例的生成结果视频 flowstudio-car-emerges-from-frame.mp4,可以看到红车从相框内驶出、落到桌面上的完整运动与声音效果。
理解底层:FlowStudio 工作流与 Router 如何协作
四个场景的操作背后,是 FlowStudio 作为本地多模态生成引擎与 Olares Router 路由体系的分工协作:
FlowStudio 即工作流执行器。 从源码看,FlowStudio 是一个运行 ComfyUI 工作流的 Market 应用,每个项目(场景)启动一个独立的 GPU 引擎。它自带模型与引擎管理,不走普通模型应用的 Model Console 管理路径,因此 model spec、model progress 等通用命令对它不适用(见 cli/skills/olares-router/references/olares-router-local-multimodal.md)。
FlowStudio 中的一个模型就是一个工作流。 Router 将其视为一个普通 provider,模型名称形如 FlowStudio/<workflow>。工作流由用户发布,因此具体名称随各人安装环境而异;Router 会定时重新读取工作流列表(因为发布工作流不会触发事件通知),以 router model list --mode image_generation 之类的命令查询到的才是当前可用的权威清单。
创意模式与默认路由。 图片、视频、音乐、3D 四种创意模式中,图片与视频有默认类别(default-image-generation、default-video-generation),而音乐与 3D 因为各自只有一个工作流、尚无第二实现,必须显式指定 --model。在 CLI 侧,对应的调用形态是 olares-cli router call image、olares-cli router call video,其请求体字段定义在 cli/cmd/ctl/router/call_media_canonical.go 中。
接口层细节值得留意。 图片编辑请求(--operation edit --image)走统一生成路由,参考图与蒙版分别对应 inputs.images 与 inputs.mask;在兼容的旧路由上则使用 FlowStudio 的 reference_images 与 maskImage 字段拼写。CLI 调用 FlowStudio 时,本地文件会被编码为 data URL 传递——这是 FlowStudio 唯一接受的图片输入形态,且单张图片上限为 10 MiB(界面手动上传的 64 MB 限制是另一条路径,两者不冲突)。更完整的命令约定见 cli/skills/olares-router/references/olares-router-call-media.md。
显存是本地生成的硬约束。 无论是场景内多个模型文件的加载(Text to Image 与 Image Edit 共享三个模型文件),还是参考素材的时长(参考视频建议输出不超过 5 秒、参考音频越长越耗显存),都与 GPU 容量直接相关。遵循文档中的建议——生成任务排队执行、避免与 Qwen3.8-27B 对话并行、参考视频控制时长——是稳定产出高质量作品的前提。
了解更多
- FlowStudio 概览:了解直接创作与通过 Lares 对话调用两种方式的差异,以及 FlowStudio、Router、Lares 三者如何协作。
- 通过 Lares 使用 FlowStudio:准备通过对话创作所需的场景,并了解一次只运行一个生成任务的最佳实践。
- 本教程的英文原文:涉及关键操作或信息时,可作为对照参考。


