refine code

This commit is contained in:
Artiprocher
2025-07-29 20:02:34 +08:00
parent 03c8fd5e61
commit 87ab7d020b
3 changed files with 60 additions and 5 deletions

View File

@@ -375,7 +375,7 @@ class FluxImagePipeline(BasePipeline):
torch_dtype: torch.dtype = torch.bfloat16,
device: Union[str, torch.device] = "cuda",
model_configs: list[ModelConfig] = [],
nexus_gen_processor_config: ModelConfig = None,
nexus_gen_processor_config: ModelConfig = ModelConfig(model_id="DiffSynth-Studio/Nexus-GenV2", origin_file_pattern="processor/"),
):
# Download and load models
model_manager = ModelManager()