mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-03-03 09:39:58 +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]
|
||||
|
||||
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)
|
||||
if guidance_scale > 1.00001:
|
||||
|
||||
Reference in New Issue
Block a user