Added support for FLUX.1-Kontext-dev

This commit is contained in:
Jaret Burkett
2025-06-26 15:24:37 -06:00
parent 8d9c47316a
commit 60ef2f1df7
12 changed files with 570 additions and 4 deletions

View File

@@ -757,6 +757,8 @@ class DatasetConfig:
self.flip_y: bool = kwargs.get('flip_y', False)
self.augments: List[str] = kwargs.get('augments', [])
self.control_path: Union[str,List[str]] = kwargs.get('control_path', None) # depth maps, etc
if self.control_path == '':
self.control_path = None
# inpaint images should be webp/png images with alpha channel. The alpha 0 (invisible) section will
# be the part conditioned to be inpainted. The alpha 1 (visible) section will be the part that is ignored
self.inpaint_path: Union[str,List[str]] = kwargs.get('inpaint_path', None)