Chaoses-Ib

Results 281 comments of Chaoses-Ib

Anyway, I've added callback for progress now. Example: ```python queue.watch_display(False) with Workflow() as wf: model, clip, vae = CheckpointLoaderSimple(Checkpoints.v1_5_pruned_emaonly) latent = KSampler(model, steps=10, positive=CLIPTextEncode('1girl', clip), negative=CLIPTextEncode('watermark', clip), latent_image=EmptyLatentImage()) image =...

It should be the same speed as ComfyUI, unless you triggered the workflow multiple times. Anyway, another way is to use [real mode](https://github.com/Chaoses-Ib/ComfyScript/blob/main/docs/Runtime.md#real-mode), which will convert the image tensor to...

不确定原因,可能和 https://github.com/Chaoses-Ib/ComfyScript/issues/50#issuecomment-2684084181 一样是哪里用到了没有解包的返回值。

Can you provide the workflow that triggered this?

Does the workflow work in virtual mode or ComfyUI's web UI?

This error is caused by a special property of `FooocusLoader`: it's not an output node, but still outputs things. I'll fix it later. A workaround at the moment is to...

I've pushed the first fix. The following code should work now: ```python with Workflow() as wf: positive = FooocusPositive("positive prompt") negative = FooocusNegative("negative prompt") lora_stack = FooocusLoraStack( True, 1, None,...

The second bug is also fixed. You can use the same code as in virtual mode now: ```python fooocus_styles = FooocusStyles_( "fooocus_styles", select_styles="Fooocus V2,Fooocus Enhance,Fooocus Sharp,SAI Enhance,SAI Texture,SAI Digital Art",...

Oh, `FooocusKSampler` is an output node and you can't use its result as input directly, instead, use its `['result']`: ```python _, image3 = FooocusKSampler(pipe2, "Preview", "ComfyUI", model)['result'] image = SaveImage(image3,...

ComfyUI's `Image` type is just a tensor. It's nodes like `SaveImage` that convert the tensor to other formats. You can also use `ImageToPIL` to convert it to `PIL.Image` directly in...