mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-04-13 04:18:19 +00:00
add webui
This commit is contained in:
@@ -95,7 +95,7 @@ class ZImagePipeline(BasePipeline):
|
||||
def __call__(
|
||||
self,
|
||||
# Prompt
|
||||
prompt: str,
|
||||
prompt: str = "",
|
||||
negative_prompt: str = "",
|
||||
cfg_scale: float = 1.0,
|
||||
# Image
|
||||
@@ -109,7 +109,7 @@ class ZImagePipeline(BasePipeline):
|
||||
width: int = 1024,
|
||||
# Randomness
|
||||
seed: int = None,
|
||||
rand_device: str = "cpu",
|
||||
rand_device: Union[str, torch.device] = "cpu",
|
||||
# Steps
|
||||
num_inference_steps: int = 8,
|
||||
sigma_shift: float = None,
|
||||
|
||||
Reference in New Issue
Block a user