improve anime

Improve Fooocus Anime a bit by using better SD1.5 refining formulation.
This commit is contained in:
lllyasviel
2023-10-21 17:11:55 -07:00
parent 60c05342b2
commit 736a5aa3ac
6 changed files with 36 additions and 59 deletions
-4
View File
@@ -11,7 +11,6 @@ from fcbh.samplers import resolve_areas_and_cond_masks, wrap_model, calculate_st
current_refiner = None
refiner_switch_step = -1
history_record = None
@torch.no_grad()
@@ -118,9 +117,6 @@ def sample_hacked(model, noise, positive, negative, cfg, device, sampler, sigmas
return
def callback_wrap(step, x0, x, total_steps):
global history_record
if isinstance(history_record, list):
history_record.append((step, x0, x))
if step == refiner_switch_step and current_refiner is not None:
refiner_switch()
if callback is not None: