Diffusion Models
DiffusersModel
Bases: Model
weave.Model
wrapping diffusers.DiffusionPipeline
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
diffusion_model_name_or_path
|
str
|
The name or path of the diffusion model. |
required |
enable_cpu_offfload
|
bool
|
Enable CPU offload for the diffusion model. |
False
|
image_height
|
int
|
The height of the generated image. |
512
|
image_width
|
int
|
The width of the generated image. |
512
|
num_inference_steps
|
int
|
The number of inference steps. |
50
|
disable_safety_checker
|
bool
|
Disable safety checker for the diffusion model. |
True
|
configs
|
Dict[str, Any]
|
Additional configs. |
{}
|
inference_kwargs
|
Dict[str, Any]
|
Inference kwargs. |
{}
|