Add profile-aware image reference editing
This commit is contained in:
@@ -60,6 +60,10 @@ def image_recipe(model):
|
||||
if model['repo']==FLUX_REPO and model['file']=='Flux.2 Klein-9B_fp16_nsfw.safetensors':return FLUX_COMPONENTS
|
||||
return None
|
||||
|
||||
def image_capabilities(model):
|
||||
"""Only advertise reference editing for the verified Qwen Image 2.1 workflow."""
|
||||
return {'reference_images':4 if model and model.get('repo')==QWEN_REPO and model.get('file','').endswith('.gguf') else 0}
|
||||
|
||||
LTX_REPO='Lightricks/LTX-2.5'
|
||||
LTX_FILE='diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors'
|
||||
LTX_COMPONENTS={
|
||||
@@ -88,6 +92,7 @@ class Profiles:
|
||||
if p['kind']=='chat':p['parameters']={**CHAT_GPU_DEFAULTS,**CHAT_SAMPLING,**p['parameters']}
|
||||
try:
|
||||
p['model']=self.catalog.entry(p['model_id'])
|
||||
if p['kind']=='image':p['capabilities']=image_capabilities(p['model'])
|
||||
p['blockers']=['Für dieses Profil ist noch kein ausführbarer Worker angebunden.']
|
||||
if p['kind']=='image' and (image_recipe(p['model']) or 'qwen-image-2.1' in p['model']['repo'].lower()):
|
||||
p['blockers']=['Eine eigene Bildlaufzeit muss eingerichtet werden; llama.cpp führt keine Bildmodelle aus.']
|
||||
|
||||
Reference in New Issue
Block a user