Fix ipadapter clip_vision key error #263
This commit is contained in:
@@ -99,6 +99,10 @@ async def getStylesList(request):
|
||||
nd['name_cn'] = cn_data[key] if key in cn_data else key
|
||||
nd["name"] = d['name']
|
||||
nd['imgName'] = img_name
|
||||
if "prompt" in d:
|
||||
nd['prompt'] = d['prompt']
|
||||
if "negative_prompt" in d:
|
||||
nd['negative_prompt'] = d['negative_prompt']
|
||||
ndata.append(nd)
|
||||
return web.json_response(ndata)
|
||||
return web.Response(status=400)
|
||||
|
||||
+2
-2
@@ -3100,8 +3100,8 @@ class ipadapter:
|
||||
model_url = IPADAPTER_CLIPVISION_MODELS["clip-vit-large-patch14-336"]["model_url"]
|
||||
clipvision_file = get_local_filepath(model_url, IPADAPTER_DIR, "clip-vit-large-patch14-336.bin")
|
||||
else:
|
||||
model_url = IPADAPTER_CLIPVISION_MODELS["clip-vit-h-14-32b-b79k"]["model_url"]
|
||||
clipvision_file = get_local_filepath(model_url, IPADAPTER_DIR, "clip-vit-h-14-32b-b79k.safetensors")
|
||||
model_url = IPADAPTER_CLIPVISION_MODELS["clip-vit-h-14-laion2B-s32B-b79K"]["model_url"]
|
||||
clipvision_file = get_local_filepath(model_url, IPADAPTER_DIR, "clip-vit-h-14-laion2B-s32B-b79K.safetensors")
|
||||
clipvision_name = os.path.basename(model_url)
|
||||
if clipvision_file == pipeline['clipvision']['file']:
|
||||
clip_vision = pipeline['clipvision']['model']
|
||||
|
||||
@@ -1243,7 +1243,7 @@ const getSetWidgets = ['rescale_after_model', 'rescale',
|
||||
'num_loras', 'num_controlnet', 'mode', 'toggle', 'resolution', 'ratio', 'target_parameter',
|
||||
'input_count', 'replace_count', 'downscale_mode', 'range_mode','text_combine_mode', 'input_mode',
|
||||
'lora_count','ckpt_count', 'conditioning_mode', 'preset', 'use_tiled', 'use_batch', 'num_embeds',
|
||||
"easing_mode", "guider", "scheduler", "inpaint_mode", 't5_type'
|
||||
"easing_mode", "guider", "scheduler", "inpaint_mode", 't5_type', 'rem_mode'
|
||||
]
|
||||
|
||||
function getSetters(node) {
|
||||
|
||||
Reference in New Issue
Block a user