Comments (6)
Can you upload the workflow here? I wonder where True
and 50
come from.
from comfyscript.
from comfyscript.
I should have cleaned it up first, you need to remove the ToneMapNoiseWithRescaleCFG node first or set the values to 1, btw should bypassed nodes be transpiled?
from comfyscript.
Look like some node will hook DetailerForEachPipe
and add two addtional optional inputs. I only have ComfyUI-Impact-Pack installed before, so I didn't find what the two addtional values are.
The bug is now fixed. You can git pull
to update.
"optional": {
"detailer_hook": [
"DETAILER_HOOK"
],
"refiner_basic_pipe_opt": [
"BASIC_PIPE"
],
"inpaint_model": [
"BOOLEAN",
{
"default": false,
"label_on": "enabled",
"label_off": "disabled"
}
],
"noise_mask_feather": [
"INT",
{
"default": 0,
"min": 0,
"max": 100,
"step": 1
}
]
}
from comfyscript.
btw should bypassed nodes be transpiled?
Bypassed nodes are now ignored.
Before:
mage, _ = LoadImage('ComfyUI_temp_rcuxh_00001_.png')
image2 = ImageScaleToSide(image, 1024, 'Longest', 'nearest-exact', 'disabled')
image2 = ColorCorrect(image2, 0, 0, 0, -40, -40, 1)
PreviewImage(image2)
image3, _ = CRUpscaleImage(image2, '8x_NMKD-Superscale_150000_G.pth', 'rescale', 2, 1024, 'lanczos', 'true', 8)
segs = ImpactMakeTileSEGS(image3, 600, 1.5, 200, 100, 0, 'Reuse fast', None, None)
# _ = SEGSPreview(segs, True, 0.1, image3)
image4 = DepthAnythingPreprocessor(image3, 'depth_anything_vitl14.pth', 512)
PreviewImage(image4)
control_net = ControlNetLoader(r'XL\controlnet-sd-xl-1.0-depth-16bit-zoe.safetensors')
segs2 = ImpactControlNetApplySEGS(segs, control_net, 1, None, image4)
model, clip, vae = CheckpointLoaderSimple(r'XL\turbovisionxlSuperFastXLBasedOnNew_alphaV0101Bakedvae.safetensors')
model = TonemapNoiseWithRescaleCFG(model, 2, 2)
model = SelfAttentionGuidance(model, 1, 4)
lora_stack, _ = CRLoRAStack('On', r'xl\LCMTurboMix_LCM_Sampler.safetensors', 1, 1, 'On', r'xl\xl_more_art-full_v1.safetensors', 1, 1, 'On', r'xl\add-detail-xl.safetensors', 1, 1, None)
model, clip, _ = CRApplyLoRAStack(model, clip, lora_stack)
conditioning = CLIPTextEncode('Shot Size - extreme wide shot,( Marrakech market at night time:1.5), Moroccan young beautiful woman, smiling, exotic, (loose hijab:0.1)', clip)
conditioning2 = CLIPTextEncode('(worst quality, low quality, normal quality:2), blurry, depth of field, nsfw', clip)
basic_pipe = ToBasicPipe(model, clip, vae, conditioning, conditioning2)
image5, _, _, _ = DetailerForEachPipe(image3, segs2, 1024, True, 1024, 403808226377311, 10, 3, 'lcm', 'ddim_uniform', 0.1, 50, True, True, basic_pipe, '', 0, 1, None, None, True, 50)
image5 = ColorCorrect(image5, 0, 0, 0, 40, 40, 1)
SaveAsWebp(image5, 'ComfyUI', 'lossy', 80)
# _ = CannyEdgePreprocessor(image3, 100, 200, 2048)
PreviewImage(image5)
PreviewImage(image)
After:
image, _ = LoadImage('ComfyUI_temp_rcuxh_00001_.png')
image2 = ImageScaleToSide(image, 1024, 'Longest', 'nearest-exact', 'disabled')
PreviewImage(image2)
image3, _ = CRUpscaleImage(image2, '8x_NMKD-Superscale_150000_G.pth', 'rescale', 2, 1024, 'lanczos', 'true', 8)
segs = ImpactMakeTileSEGS(image3, 600, 1.5, 200, 100, 0, 'Reuse fast', None, None)
# _ = SEGSPreview(segs, True, 0.1, image3)
image4 = image3
PreviewImage(image4)
segs2 = segs
model, clip, vae = CheckpointLoaderSimple(r'XL\turbovisionxlSuperFastXLBasedOnNew_alphaV0101Bakedvae.safetensors')
lora_stack, _ = CRLoRAStack('On', r'xl\LCMTurboMix_LCM_Sampler.safetensors', 1, 1, 'On', r'xl\xl_more_art-full_v1.safetensors', 1, 1, 'On', r'xl\add-detail-xl.safetensors', 1, 1, None)
model, clip, _ = CRApplyLoRAStack(model, clip, lora_stack)
conditioning = CLIPTextEncode('Shot Size - extreme wide shot,( Marrakech market at night time:1.5), Moroccan young beautiful woman, smiling, exotic, (loose hijab:0.1)', clip)
conditioning2 = CLIPTextEncode('(worst quality, low quality, normal quality:2), blurry, depth of field, nsfw', clip)
basic_pipe = ToBasicPipe(model, clip, vae, conditioning, conditioning2)
image5, _, _, _ = DetailerForEachPipe(image3, segs2, 1024, True, 1024, 403808226377311, 10, 3, 'lcm', 'ddim_uniform', 0.1, 50, True, True, basic_pipe, '', 0, 1, None, None, True, 50)
PreviewImage(image5)
PreviewImage(image)
from comfyscript.
Thank you :)
from comfyscript.
Related Issues (20)
- thoughts on idiomatic way of making xy grid? HOT 8
- Getting errors after sampler run, logs hidden HOT 3
- Thanks for all your help! Can I buy you a coffee/beer/tea? HOT 5
- See multiple images, but without multiple samplers HOT 5
- transpiler reusing variables that should be unique HOT 2
- New Loras downloaded, how to regenerate enumerations? HOT 1
- How to use it? This plugin is not show up in chrome.Is it the code editor as front replace web browser for comfyui? HOT 9
- VSCode Jupyter Notebook slows way down over time HOT 2
- ComfyScript unexpected behaviour with Fooocus Text HOT 6
- 多个 workflow 如何有效管理? HOT 2
- Help getting started HOT 4
- Using workflows with input nodes HOT 1
- Is it possible to edit nodes and have it be reflected in ComfyScript? HOT 2
- How can I create a Flask app that runs ComfyScript code? HOT 13
- Unable to execute comfyscript when called via function HOT 7
- Loading lora -> error HOT 4
- Embedded workflows not loading in ComfyUI HOT 10
- Using CivitAICheckpointLoader HOT 8
- CheckpointLoaderSimple not finding model in folder HOT 3
- Generating failing script for working workflow. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comfyscript.