mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 21:42:37 +08:00
Merge branch 'comfyanonymous:master' into refactor/execution
This commit is contained in:
commit
cd32edaa86
@ -164,7 +164,6 @@ class SDXLRefiner(BaseModel):
|
|||||||
else:
|
else:
|
||||||
aesthetic_score = kwargs.get("aesthetic_score", 6)
|
aesthetic_score = kwargs.get("aesthetic_score", 6)
|
||||||
|
|
||||||
print(clip_pooled.shape, width, height, crop_w, crop_h, aesthetic_score)
|
|
||||||
out = []
|
out = []
|
||||||
out.append(self.embedder(torch.Tensor([height])))
|
out.append(self.embedder(torch.Tensor([height])))
|
||||||
out.append(self.embedder(torch.Tensor([width])))
|
out.append(self.embedder(torch.Tensor([width])))
|
||||||
@ -188,7 +187,6 @@ class SDXL(BaseModel):
|
|||||||
target_width = kwargs.get("target_width", width)
|
target_width = kwargs.get("target_width", width)
|
||||||
target_height = kwargs.get("target_height", height)
|
target_height = kwargs.get("target_height", height)
|
||||||
|
|
||||||
print(clip_pooled.shape, width, height, crop_w, crop_h, target_width, target_height)
|
|
||||||
out = []
|
out = []
|
||||||
out.append(self.embedder(torch.Tensor([height])))
|
out.append(self.embedder(torch.Tensor([height])))
|
||||||
out.append(self.embedder(torch.Tensor([width])))
|
out.append(self.embedder(torch.Tensor([width])))
|
||||||
|
|||||||
@ -19,11 +19,11 @@ def sampling_function(model_function, x, timestep, uncond, cond, cond_scale, con
|
|||||||
strength = 1.0
|
strength = 1.0
|
||||||
if 'timestep_start' in cond[1]:
|
if 'timestep_start' in cond[1]:
|
||||||
timestep_start = cond[1]['timestep_start']
|
timestep_start = cond[1]['timestep_start']
|
||||||
if timestep_in > timestep_start:
|
if timestep_in[0] > timestep_start:
|
||||||
return None
|
return None
|
||||||
if 'timestep_end' in cond[1]:
|
if 'timestep_end' in cond[1]:
|
||||||
timestep_end = cond[1]['timestep_end']
|
timestep_end = cond[1]['timestep_end']
|
||||||
if timestep_in < timestep_end:
|
if timestep_in[0] < timestep_end:
|
||||||
return None
|
return None
|
||||||
if 'area' in cond[1]:
|
if 'area' in cond[1]:
|
||||||
area = cond[1]['area']
|
area = cond[1]['area']
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user