mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-30 10:13:03 +08:00
Fix linting
This commit is contained in:
parent
64fd916334
commit
5dbd0355b0
@ -55,7 +55,7 @@ def samples_to_images_tensor(sample, approximation=None, model=None):
|
||||
with devices.autocast(), torch.no_grad():
|
||||
x_sample = sd_vae_consistency.decoder_model()(
|
||||
sample.to(devices.device, devices.dtype)/0.18215,
|
||||
schedule=[1.0]
|
||||
schedule=[1.0],
|
||||
)
|
||||
sd_vae_consistency.unload()
|
||||
else:
|
||||
|
@ -5,8 +5,6 @@ Improved decoding for stable diffusion vaes.
|
||||
https://github.com/openai/consistencydecoder
|
||||
"""
|
||||
import os
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
|
||||
from modules import devices, paths_internal, shared
|
||||
from consistencydecoder import ConsistencyDecoder
|
||||
@ -32,4 +30,4 @@ def decoder_model():
|
||||
def unload():
|
||||
global sd_vae_consistency_models
|
||||
if sd_vae_consistency_models is not None:
|
||||
sd_vae_consistency_models.ckpt.to('cpu')
|
||||
sd_vae_consistency_models.ckpt.to('cpu')
|
||||
|
Loading…
Reference in New Issue
Block a user