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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user