- dgenerate.pipelinewrapper.CACHE_MEMORY_CONSTRAINTS = ['used_percent > 70']
Cache constraint expressions for when to clear all model caches (DiffusionPipeline, VAE, and ControlNet), 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.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_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.