Git 메뉴(최신 받기·상태·기록) + Mac WebUI 이미지 설정 DB 맞춤
- 메인 메뉴 Git: ⬇ 최신 받기(수정 있으면 받지 않음, --ff-only, 받으면 다시 시작) · 상태 · 최근 기록 (Windows 20_git_menu.ps1 · Mac 21_git_menu.sh) - Mac 20_webui_image_sync.sh: Windows와 같은 DB 맞춤 + 이미지 편집 연결, WebUI 기동·재시작·연결 때 실행 - 두 플랫폼: WebUI에서 이미지 설정을 한 번도 하지 않은 DB면 생성 설정 전체를 기록 - wiki: 06_문제_해결 25-2, 07_변경_기록, PROJECT.md, README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HnDmXrFqktWwYa1cuJRAVZ
This commit is contained in:
@@ -76,6 +76,16 @@ if e.get('IMAGE_GENERATION_ENGINE', '').lower() == 'comfyui':
|
||||
if url: want['image_generation.comfyui.base_url'] = url
|
||||
if e.get('COMFYUI_WORKFLOW'): want['image_generation.comfyui.workflow'] = e['COMFYUI_WORKFLOW']
|
||||
if nodes: want['image_generation.comfyui.nodes'] = nodes
|
||||
elif get('image_generation.engine') != 'comfyui' and not (get('image_generation.comfyui.workflow') or '').strip():
|
||||
# never set up in WebUI yet (engine still default, no workflow) -> write all generation keys
|
||||
want['image_generation.enable'] = True
|
||||
want['image_generation.engine'] = 'comfyui'
|
||||
if e.get('IMAGE_GENERATION_MODEL'): want['image_generation.model'] = e['IMAGE_GENERATION_MODEL']
|
||||
if e.get('IMAGE_SIZE'): want['image_generation.size'] = e['IMAGE_SIZE']
|
||||
if (e.get('IMAGE_STEPS') or '').isdigit(): want['image_generation.steps'] = int(e['IMAGE_STEPS'])
|
||||
if url: want['image_generation.comfyui.base_url'] = url
|
||||
if e.get('COMFYUI_WORKFLOW'): want['image_generation.comfyui.workflow'] = e['COMFYUI_WORKFLOW']
|
||||
if nodes: want['image_generation.comfyui.nodes'] = nodes
|
||||
else:
|
||||
if nodes and empty_ids(get('image_generation.comfyui.nodes'), ['prompt']):
|
||||
want['image_generation.comfyui.nodes'] = nodes
|
||||
|
||||
Reference in New Issue
Block a user