+
+
+
+
+ 开启后,用户在无限画布中选中图片可使用“图层拆分”工具。
+
+
+
+
+ setLayerSplitConfig({ ...layerSplitConfig, enabled: checked })
+ }
+ />
+
+ {layerSplitConfig.enabled ? "已开启" : "已关闭"}
+
+
+
+
+
+
+
+
+
+ setLayerSplitConfig({ ...layerSplitConfig, replicateApiToken: e.target.value })
+ }
+ placeholder="r8_xxxxxxxxxxxxx"
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+
+ setLayerSplitConfig({ ...layerSplitConfig, replicateModel: e.target.value })
+ }
+ placeholder="qwen/qwen-image-layered"
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+
+
+ setLayerSplitConfig({
+ ...layerSplitConfig,
+ layers: Math.max(2, Math.min(12, Number(e.target.value) || 4)),
+ })
+ }
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+ setLayerSplitConfig({
+ ...layerSplitConfig,
+ resolution: Math.max(256, Math.min(1536, Number(e.target.value) || 640)),
+ })
+ }
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+ setLayerSplitConfig({
+ ...layerSplitConfig,
+ trueCfgScale: Math.max(1, Math.min(12, Number(e.target.value) || 4)),
+ })
+ }
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+ setLayerSplitConfig({
+ ...layerSplitConfig,
+ numInferenceSteps: Math.max(1, Math.min(80, Number(e.target.value) || 30)),
+ })
+ }
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+
+
+
+
保持前景/背景透明边缘更稳定
+
+
+ setLayerSplitConfig({ ...layerSplitConfig, cfgNormalize: checked })
+ }
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+
+
使用英文提示增强兼容性
+
+
+ setLayerSplitConfig({ ...layerSplitConfig, useEnPrompt: checked })
+ }
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+
+ setLayerSplitConfig({
+ ...layerSplitConfig,
+ timeoutMs: Math.max(30000, Math.min(900000, Number(e.target.value) || 300000)),
+ })
+ }
+ disabled={!layerSplitConfig.enabled}
+ />
+
+
+
+
+
+
+
+
+
Qwen-Image-Layered 说明
+
+
• 用途:将单张图片拆成多个独立图层(RGBA layer)
+
• 平台:Replicate 托管推理,无需自建 GPU 服务器
+
• 默认模型:qwen/qwen-image-layered
+
• 使用后会将每个图层转存到你的存储桶,并在无限画布中新增图片节点
+
+
+
+
+
+