-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ComfyScript unexpected behaviour with Fooocus Text #59
Comments
I'll fix this later. A workaround is to run ComfyUI in a separate process, and then |
Tyu for quick reply :-) I basically opened a new terminal and run ComfyUI there, opened a browser with the workflow. Then in another terminal I ran the same script this time with load('http://127.0.0.1:8188/') But I still get the same error. Did I somehow miss stg in the workaround you suggested actually? |
Sorry, I misunderstood the problem. The real problem is Looks like you got the code from the transpiler, which at the moment can't distinguish types/nodes with the same name (#30). I'll try to mitigate this problem in the future. |
Thank you very much for your help! I finally got it running, but only with the following required changes:
Then it all worked fine, hurray! :-) |
The first issue can be solved without the change by explicitly specifying the missing FooocusStyles('fooocus_styles', select_styles='Fooocus V2,Fooocus Enhance,Fooocus Sharp,SAI Enhance,SAI Texture,SAI Digital Art')
# or: FooocusStyles('fooocus_styles', select_styles=','.join(["Fooocus V2","Fooocus Enhance","Fooocus Sharp","SAI Enhance","SAI Texture","SAI Digital Art"])) The second one is a bug and now fixed. Thanks for your report. |
Tyuuu sounds much better indeed to add those as you suggested... Great to hear its now fixed! Keep up with the great work :-) |
Hi all,
I've been trying to use the following workflow with comfyscript but somehow generated script fails to run:
workflow:
https://openart.ai/workflows/datou/fooocus-text/sl9YxQ1umL1N9aRHtldI
Even the following simple script follows cannot run successfully, and fails at FooocusStyles.
######################SCRIPT FAILING ###################################
from comfy_script.runtime import *
load()
from comfy_script.runtime.nodes import *
with Workflow():
#_ = FooocusNegative('')
positive = FooocusPositive('a frozen brain is on fire, "LABEL"')
pipe = FooocusLoader('dreamshaperXL_lightningDPMSDE.safetensors', 'None', 0.5, 'joint', positive, '', '1024 x 1024', 1024, 1024, 1, None)
fooocus_styles = FooocusStyles('fooocus_styles')
###############################################################
The text was updated successfully, but these errors were encountered: