mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'main' into moretranslation
This commit is contained in:
commit
682d6998bc
@ -772,11 +772,13 @@ diffusers.models.controlnet.ControlNetModel = ControlNetModel
|
|||||||
# NOTE: with this patch, torch.compile crashes on 2.0 torch(already fixed in nightly)
|
# NOTE: with this patch, torch.compile crashes on 2.0 torch(already fixed in nightly)
|
||||||
# https://github.com/huggingface/diffusers/pull/4315
|
# https://github.com/huggingface/diffusers/pull/4315
|
||||||
# https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/lora.py#L96C18-L96C18
|
# https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/lora.py#L96C18-L96C18
|
||||||
def new_LoRACompatibleConv_forward(self, x):
|
def new_LoRACompatibleConv_forward(self, hidden_states, scale: float = 1.0):
|
||||||
if self.lora_layer is None:
|
if self.lora_layer is None:
|
||||||
return super(diffusers.models.lora.LoRACompatibleConv, self).forward(x)
|
return super(diffusers.models.lora.LoRACompatibleConv, self).forward(hidden_states)
|
||||||
else:
|
else:
|
||||||
return super(diffusers.models.lora.LoRACompatibleConv, self).forward(x) + self.lora_layer(x)
|
return super(diffusers.models.lora.LoRACompatibleConv, self).forward(hidden_states) + (
|
||||||
|
scale * self.lora_layer(hidden_states)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
diffusers.models.lora.LoRACompatibleConv.forward = new_LoRACompatibleConv_forward
|
diffusers.models.lora.LoRACompatibleConv.forward = new_LoRACompatibleConv_forward
|
||||||
|
@ -80,7 +80,7 @@ export const initialGenerationState: GenerationState = {
|
|||||||
scheduler: 'euler',
|
scheduler: 'euler',
|
||||||
maskBlur: 16,
|
maskBlur: 16,
|
||||||
maskBlurMethod: 'box',
|
maskBlurMethod: 'box',
|
||||||
canvasCoherenceMode: 'edge',
|
canvasCoherenceMode: 'unmasked',
|
||||||
canvasCoherenceSteps: 20,
|
canvasCoherenceSteps: 20,
|
||||||
canvasCoherenceStrength: 0.3,
|
canvasCoherenceStrength: 0.3,
|
||||||
seed: 0,
|
seed: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user