Add ENABLE_IP_ADAPTER config flag (default: False)
Allows disabling IP-Adapter FaceID entirely for cleaner output quality. Set to True in config.py to re-enable face-locked generation.
This commit is contained in:
@@ -244,7 +244,10 @@ class SDXLGenerator:
|
||||
logger.info(f"Parameters: {width}x{height}, steps={num_inference_steps}, guidance={guidance_scale}")
|
||||
|
||||
# Check if face-locked generation requested
|
||||
use_face_id = face_image is not None
|
||||
use_face_id = face_image is not None and config.ENABLE_IP_ADAPTER
|
||||
|
||||
if face_image is not None and not config.ENABLE_IP_ADAPTER:
|
||||
logger.info("IP-Adapter disabled in config, generating without face lock")
|
||||
|
||||
if use_face_id:
|
||||
# Initialize IP-Adapter if needed
|
||||
|
||||
Reference in New Issue
Block a user