fix bug of separate_cfg_infer set to False

This commit is contained in:
chflame163
2024-11-06 14:41:40 +08:00
parent 48814dfa52
commit 499b6e04b4
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -110,6 +110,7 @@ class OmniGenPipeline:
self.device = device
def vae_encode(self, x, dtype):
x = x.to(self.vae.config.get("dtype", torch.bfloat16))
if self.vae.config.shift_factor is not None:
x = self.vae.encode(x).latent_dist.sample()
x = (x - self.vae.config.shift_factor) * self.vae.config.scaling_factor
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "ComfyUI_OmniGen_Wrapper"
description = "ComfyUI custom node of OmniGen project."
version = "1.0.1"
version = "1.0.2"
license = "MIT"
dependencies = ["transformers", "diffusers", "numpy", "datasets", accelerate", "timm", "peft", "safetensors", "huggingface_hub"]