image s imsages images model fixes new model see dream

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-10 13:16:05 +00:00
parent 6fb0411f56
commit 854b3efd45
9 changed files with 582 additions and 66 deletions

View File

@@ -869,8 +869,17 @@ Make sure each prompt is detailed enough for image generation, describing the vi
del inference_task['height']
inference_task['resolution'] = '1k'
elif runware_model.startswith('bytedance:'):
# Seedream models use basic format - no steps, CFGScale needed
pass
# Seedream models use basic format - no steps, CFGScale, negativePrompt needed
# Also require minimum 3,686,400 pixels (roughly 1920x1920)
if 'negativePrompt' in inference_task:
del inference_task['negativePrompt']
# Enforce minimum size for Seedream (min ~1920x1920, use 2048x2048 for square)
current_pixels = width * height
if current_pixels < 3686400:
# Use default Seedream square size
inference_task['width'] = 2048
inference_task['height'] = 2048
logger.info(f"[AIProcessor.generate_image] Seedream requires min 3.6M pixels, adjusted to 2048x2048")
elif runware_model.startswith('runware:'):
# Hi Dream Full - needs steps and CFGScale
inference_task['steps'] = 30