[diffusion] improve: improve code readability of DenoisingStage (#20003)
This commit is contained in:
@@ -343,9 +343,9 @@ class DenoisingStage(PipelineStage):
|
|||||||
torch.full(
|
torch.full(
|
||||||
(batch_size,),
|
(batch_size,),
|
||||||
guidance_val,
|
guidance_val,
|
||||||
dtype=torch.float32,
|
dtype=target_dtype,
|
||||||
device=device,
|
device=device,
|
||||||
).to(target_dtype)
|
)
|
||||||
* 1000.0
|
* 1000.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user