- dgenerate.pipelinewrapper.CACHE_MEMORY_CONSTRAINTS = ['used_percent > 70']
Cache constraint expressions for when to clear all model caches (DiffusionPipeline, VAE, ControlNet, and Text Encoder), syntax provided via
dgenerate.memory.memory_constraints()If any of these constraints are met, a call to
enforce_cache_constraints()will callclear_model_cache()and force a garbage collection.
- dgenerate.pipelinewrapper.PIPELINE_CACHE_MEMORY_CONSTRAINTS = ['pipeline_size > (available * 0.75)']
Cache constraint expressions for when to clear the DiffusionPipeline cache, syntax provided via
dgenerate.memory.memory_constraints()If any of these constraints are met, a call to
enforce_pipeline_cache_constraints()will callclear_pipeline_cache()and force a garbage collection.Extra variables include:
cache_size(the current estimated cache size in bytes), andpipeline_size(the estimated size of the new pipeline before it is brought into memory, in bytes)
- dgenerate.pipelinewrapper.UNET_CACHE_MEMORY_CONSTRAINTS = ['unet_size > (available * 0.75)']
Cache constraint expressions for when to clear UNet cache, syntax provided via
dgenerate.memory.memory_constraints()If any of these constraints are met, a call to
enforce_unet_cache_constraints()will callclear_unet_cache()and force a garbage collection.Extra variables include:
cache_size(the current estimated cache size in bytes), andunet_size(the estimated size of the new UNet before it is brought into memory, in bytes)
- dgenerate.pipelinewrapper.VAE_CACHE_MEMORY_CONSTRAINTS = ['vae_size > (available * 0.75)']
Cache constraint expressions for when to clear VAE cache, syntax provided via
dgenerate.memory.memory_constraints()If any of these constraints are met, a call to
enforce_vae_cache_constraints()will callclear_vae_cache()and force a garbage collection.Extra variables include:
cache_size(the current estimated cache size in bytes), andvae_size(the estimated size of the new VAE before it is brought into memory, in bytes)
- dgenerate.pipelinewrapper.CONTROL_NET_CACHE_MEMORY_CONSTRAINTS = ['control_net_size > (available * 0.75)']
Cache constraint expressions for when to clear the ControlNet cache, syntax provided via
dgenerate.memory.memory_constraints()If any of these constraints are met, a call to
enforce_control_net_cache_constraints()will callclear_control_net_cache()and force a garbage collection.Extra variables include:
cache_size(the current estimated cache size in bytes), andcontrol_net_size(the estimated size of the new ControlNet before it is brought into memory, in bytes)
- dgenerate.pipelinewrapper.TEXT_ENCODER_CACHE_MEMORY_CONSTRAINTS = ['text_encoder_size > (available * 0.75)']
Cache constraint expressions for when to clear the Text Encoder cache, syntax provided via
dgenerate.memory.memory_constraints()If any of these constraints are met, a call to
enforce_text_encoder_cache_constraints()will callclear_text_encoder_cache()and force a garbage collection.Extra variables include:
cache_size(the current estimated cache size in bytes), andtext_encoder_size(the estimated size of the new Text Encoder before it is brought into memory, in bytes)
- dgenerate.pipelinewrapper.DEFAULT_INFERENCE_STEPS = 30
Default value for inference steps.
- dgenerate.pipelinewrapper.DEFAULT_GUIDANCE_SCALE = 5
Default value for guidance scale.
- dgenerate.pipelinewrapper.DEFAULT_IMAGE_SEED_STRENGTH = 0.8
Default image seed strength for img2img.
- dgenerate.pipelinewrapper.DEFAULT_IMAGE_GUIDANCE_SCALE = 1.5
Default image guidance scale for pix2pix.
- dgenerate.pipelinewrapper.DEFAULT_SDXL_HIGH_NOISE_FRACTION = 0.8
Default SDXL high noise fraction.
- dgenerate.pipelinewrapper.DEFAULT_X4_UPSCALER_NOISE_LEVEL = 20
Default x4 upscaler noise level.
- dgenerate.pipelinewrapper.DEFAULT_FLOYD_SUPERRESOLUTION_NOISE_LEVEL = 250
Default noise level for floyd super resolution upscalers.
- dgenerate.pipelinewrapper.DEFAULT_FLOYD_SUPERRESOLUTION_IMG2IMG_NOISE_LEVEL = 250
Default noise level for floyd super resolution upscalers when preforming img2img.
- dgenerate.pipelinewrapper.DEFAULT_FLOYD_SUPERRESOLUTION_INPAINT_NOISE_LEVEL = 0
Default noise level for floyd super resolution upscalers when inpainting.
- dgenerate.pipelinewrapper.DEFAULT_OUTPUT_WIDTH = 512
Default output width for txt2img.
- dgenerate.pipelinewrapper.DEFAULT_OUTPUT_HEIGHT = 512
Default output height for txt2img.
- dgenerate.pipelinewrapper.DEFAULT_SDXL_OUTPUT_WIDTH = 1024
Default output width for SDXL txt2img.
- dgenerate.pipelinewrapper.DEFAULT_SDXL_OUTPUT_HEIGHT = 1024
Default output height for SDXL txt2img.
- dgenerate.pipelinewrapper.DEFAULT_FLOYD_IF_OUTPUT_WIDTH = 64
Default output width for Deep Floyd IF txt2img first stage.
- dgenerate.pipelinewrapper.DEFAULT_FLOYD_IF_OUTPUT_HEIGHT = 64
Default output height for Deep Floyd IF txt2img first stage.
- dgenerate.pipelinewrapper.DEFAULT_SEED = 0
Default RNG seed.
- dgenerate.pipelinewrapper.DEFAULT_S_CASCADE_DECODER_GUIDANCE_SCALE = 0
Default guidance scale for the Stable Cascade decoder.
- dgenerate.pipelinewrapper.DEFAULT_S_CASCADE_DECODER_INFERENCE_STEPS = 10
Default inference steps for the Stable Cascade decoder.
- dgenerate.pipelinewrapper.DEFAULT_S_CASCADE_OUTPUT_HEIGHT = 1024
Default output height for Stable Cascade.
- dgenerate.pipelinewrapper.DEFAULT_S_CASCADE_OUTPUT_WIDTH = 1024
Default output width for Stable Cascade.
- dgenerate.pipelinewrapper.DEFAULT_SD3_OUTPUT_HEIGHT = 1024
Default output height for Stable Diffusion 3.
- dgenerate.pipelinewrapper.DEFAULT_SD3_OUTPUT_WIDTH = 1024
Default output width for Stable Diffusion 3.