mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 19:21:39 +00:00
Fixed issue with chroma sampling
This commit is contained in:
@@ -61,6 +61,8 @@ class ChromaPipeline(FluxPipeline):
|
|||||||
batch_size = prompt_embeds.shape[0]
|
batch_size = prompt_embeds.shape[0]
|
||||||
|
|
||||||
device = self._execution_device
|
device = self._execution_device
|
||||||
|
if isinstance(device, str):
|
||||||
|
device = torch.device(device)
|
||||||
|
|
||||||
text_ids = torch.zeros(batch_size, prompt_embeds.shape[1], 3).to(device=device, dtype=torch.bfloat16)
|
text_ids = torch.zeros(batch_size, prompt_embeds.shape[1], 3).to(device=device, dtype=torch.bfloat16)
|
||||||
if guidance_scale > 1.00001:
|
if guidance_scale > 1.00001:
|
||||||
|
|||||||
Reference in New Issue
Block a user