mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
improve anime
Improve Fooocus Anime a bit by using better SD1.5 refining formulation.
This commit is contained in:
@@ -69,7 +69,7 @@ vae_approx_filename = os.path.join(vae_approx_path, 'xl-to-v1_interposer-v3.1.sa
|
||||
def parse(x):
|
||||
global vae_approx_model
|
||||
|
||||
x_origin = x['samples'].clone()
|
||||
x_origin = x.clone()
|
||||
|
||||
if vae_approx_model is None:
|
||||
model = Interposer()
|
||||
@@ -89,6 +89,5 @@ def parse(x):
|
||||
fcbh.model_management.load_model_gpu(vae_approx_model)
|
||||
|
||||
x = x_origin.to(device=vae_approx_model.load_device, dtype=vae_approx_model.dtype)
|
||||
x = vae_approx_model.model(x)
|
||||
|
||||
return {'samples': x.to(x_origin)}
|
||||
x = vae_approx_model.model(x).to(x_origin)
|
||||
return x
|
||||
|
||||
Reference in New Issue
Block a user