[Diffusion] fix serving image_edit get input image bug (#18109)

This commit is contained in:
Xiaoyu Zhang
2026-02-03 12:17:16 +08:00
committed by GitHub
parent e484c90cc7
commit eedd472025

View File

@@ -333,6 +333,9 @@ class DiffusersExecutionStage(PipelineStage):
if not batch.image_path:
return None
if isinstance(batch.image_path, list):
batch.image_path = batch.image_path[0]
try:
if batch.image_path.startswith(("http://", "https://")):
response = requests.get(batch.image_path, timeout=30)